# Copyright 2023-2025 Buf Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: buf/validate/conformance/cases/oneofs.proto
# Protobuf Python Version: 5.26.0
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+buf/validate/conformance/cases/oneofs.proto\x12\x1e\x62uf.validate.conformance.cases\x1a\x1b\x62uf/validate/validate.proto\")\n\x0cTestOneofMsg\x12\x19\n\x03val\x18\x01 \x01(\x08\x42\x07\xbaH\x04j\x02\x08\x01R\x03val\"0\n\tOneofNone\x12\x0e\n\x01x\x18\x01 \x01(\tH\x00R\x01x\x12\x0e\n\x01y\x18\x02 \x01(\x05H\x00R\x01yB\x03\n\x01o\"\x7f\n\x05Oneof\x12\x1a\n\x01x\x18\x01 \x01(\tB\n\xbaH\x07r\x05:\x03\x66ooH\x00R\x01x\x12\x17\n\x01y\x18\x02 \x01(\x05\x42\x07\xbaH\x04\x1a\x02 \x00H\x00R\x01y\x12<\n\x01z\x18\x03 \x01(\x0b\x32,.buf.validate.conformance.cases.TestOneofMsgH\x00R\x01zB\x03\n\x01o\"\xa0\x01\n\rOneofRequired\x12\x0e\n\x01x\x18\x01 \x01(\tH\x00R\x01x\x12\x0e\n\x01y\x18\x02 \x01(\x05H\x00R\x01y\x12\x34\n\x15name_with_underscores\x18\x03 \x01(\x05H\x00R\x13nameWithUnderscores\x12-\n\x12under_and_1_number\x18\x04 \x01(\x05H\x00R\x0funderAnd1NumberB\n\n\x01o\x12\x05\xbaH\x02\x08\x01\"T\n\x1eOneofRequiredWithRequiredField\x12\x16\n\x01\x61\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01H\x00R\x01\x61\x12\x0e\n\x01\x62\x18\x02 \x01(\tH\x00R\x01\x62\x42\n\n\x01o\x12\x05\xbaH\x02\x08\x01\x42\xcd\x01\n\"com.buf.validate.conformance.casesB\x0bOneofsProtoP\x01\xa2\x02\x04\x42VCC\xaa\x02\x1e\x42uf.Validate.Conformance.Cases\xca\x02\x1e\x42uf\\Validate\\Conformance\\Cases\xe2\x02*Buf\\Validate\\Conformance\\Cases\\GPBMetadata\xea\x02!Buf::Validate::Conformance::Casesb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'buf.validate.conformance.cases.oneofs_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  _globals['DESCRIPTOR']._loaded_options = None
  _globals['DESCRIPTOR']._serialized_options = b'\n\"com.buf.validate.conformance.casesB\013OneofsProtoP\001\242\002\004BVCC\252\002\036Buf.Validate.Conformance.Cases\312\002\036Buf\\Validate\\Conformance\\Cases\342\002*Buf\\Validate\\Conformance\\Cases\\GPBMetadata\352\002!Buf::Validate::Conformance::Cases'
  _globals['_TESTONEOFMSG'].fields_by_name['val']._loaded_options = None
  _globals['_TESTONEOFMSG'].fields_by_name['val']._serialized_options = b'\272H\004j\002\010\001'
  _globals['_ONEOF'].fields_by_name['x']._loaded_options = None
  _globals['_ONEOF'].fields_by_name['x']._serialized_options = b'\272H\007r\005:\003foo'
  _globals['_ONEOF'].fields_by_name['y']._loaded_options = None
  _globals['_ONEOF'].fields_by_name['y']._serialized_options = b'\272H\004\032\002 \000'
  _globals['_ONEOFREQUIRED'].oneofs_by_name['o']._loaded_options = None
  _globals['_ONEOFREQUIRED'].oneofs_by_name['o']._serialized_options = b'\272H\002\010\001'
  _globals['_ONEOFREQUIREDWITHREQUIREDFIELD'].oneofs_by_name['o']._loaded_options = None
  _globals['_ONEOFREQUIREDWITHREQUIREDFIELD'].oneofs_by_name['o']._serialized_options = b'\272H\002\010\001'
  _globals['_ONEOFREQUIREDWITHREQUIREDFIELD'].fields_by_name['a']._loaded_options = None
  _globals['_ONEOFREQUIREDWITHREQUIREDFIELD'].fields_by_name['a']._serialized_options = b'\272H\003\310\001\001'
  _globals['_TESTONEOFMSG']._serialized_start=108
  _globals['_TESTONEOFMSG']._serialized_end=149
  _globals['_ONEOFNONE']._serialized_start=151
  _globals['_ONEOFNONE']._serialized_end=199
  _globals['_ONEOF']._serialized_start=201
  _globals['_ONEOF']._serialized_end=328
  _globals['_ONEOFREQUIRED']._serialized_start=331
  _globals['_ONEOFREQUIRED']._serialized_end=491
  _globals['_ONEOFREQUIREDWITHREQUIREDFIELD']._serialized_start=493
  _globals['_ONEOFREQUIREDWITHREQUIREDFIELD']._serialized_end=577
# @@protoc_insertion_point(module_scope)
