-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmessages_pb2.py
More file actions
105 lines (98 loc) · 8.34 KB
/
messages_pb2.py
File metadata and controls
105 lines (98 loc) · 8.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# 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!
# NO CHECKED-IN PROTOBUF GENCODE
# source: buf/validate/conformance/cases/messages.proto
# Protobuf Python Version: 6.30.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC,
6,
30,
1,
'',
'buf/validate/conformance/cases/messages.proto'
)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from buf.validate.conformance.cases.other_package import embed_pb2 as buf_dot_validate_dot_conformance_dot_cases_dot_other__package_dot_embed__pb2
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-buf/validate/conformance/cases/messages.proto\x12\x1e\x62uf.validate.conformance.cases\x1a\x38\x62uf/validate/conformance/cases/other_package/embed.proto\x1a\x1b\x62uf/validate/validate.proto\"l\n\x07TestMsg\x12 \n\x05\x63onst\x18\x01 \x01(\tB\n\xbaH\x07r\x05\n\x03\x66ooR\x05\x63onst\x12?\n\x06nested\x18\x02 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgR\x06nested\"_\n\x0bMessageNone\x12\x45\n\x03val\x18\x01 \x01(\x0b\x32\x33.buf.validate.conformance.cases.MessageNone.NoneMsgR\x03val\x1a\t\n\x07NoneMsg\"3\n\x0fMessageDisabled\x12\x19\n\x03val\x18\x01 \x01(\x04\x42\x07\xbaH\x04\x32\x02 {R\x03val:\x05\xbaH\x02\x08\x01\"D\n\x07Message\x12\x39\n\x03val\x18\x01 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgR\x03val\"\\\n\x13MessageCrossPackage\x12\x45\n\x03val\x18\x01 \x01(\x0b\x32\x33.buf.validate.conformance.cases.other_package.EmbedR\x03val\"P\n\x0bMessageSkip\x12\x41\n\x03val\x18\x01 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgB\x06\xbaH\x03\xd8\x01\x03R\x03val\"T\n\x0fMessageRequired\x12\x41\n\x03val\x18\x01 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgB\x06\xbaH\x03\xc8\x01\x01R\x03val\"l\n\x1aMessageRequiredButOptional\x12\x46\n\x03val\x18\x01 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgB\x06\xbaH\x03\xc8\x01\x01H\x00R\x03val\x88\x01\x01\x42\x06\n\x04_val\"i\n\x14MessageRequiredOneof\x12\x43\n\x03val\x18\x01 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgB\x06\xbaH\x03\xc8\x01\x01H\x00R\x03valB\x0c\n\x03one\x12\x05\xbaH\x02\x08\x01\"\x15\n\x13MessageWith3dInside\"g\n\x17MessageOneofSingleField\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\x10\xbaH\r\"\x0b\n\tstr_field\"v\n\x1aMessageOneofMultipleFields\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\x1c\xbaH\x19\"\x17\n\tstr_field\n\nbool_field\"\x80\x01\n\"MessageOneofMultipleFieldsRequired\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\x1e\xbaH\x1b\"\x19\n\tstr_field\n\nbool_field\x10\x01\"G\n\x1cMessageOneofUnknownFieldName\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField:\n\xbaH\x07\"\x05\n\x03xxxB\xcf\x01\n\"com.buf.validate.conformance.casesB\rMessagesProtoP\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.messages_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\"com.buf.validate.conformance.casesB\rMessagesProtoP\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['_TESTMSG'].fields_by_name['const']._loaded_options = None
_globals['_TESTMSG'].fields_by_name['const']._serialized_options = b'\272H\007r\005\n\003foo'
_globals['_MESSAGEDISABLED'].fields_by_name['val']._loaded_options = None
_globals['_MESSAGEDISABLED'].fields_by_name['val']._serialized_options = b'\272H\0042\002 {'
_globals['_MESSAGEDISABLED']._loaded_options = None
_globals['_MESSAGEDISABLED']._serialized_options = b'\272H\002\010\001'
_globals['_MESSAGESKIP'].fields_by_name['val']._loaded_options = None
_globals['_MESSAGESKIP'].fields_by_name['val']._serialized_options = b'\272H\003\330\001\003'
_globals['_MESSAGEREQUIRED'].fields_by_name['val']._loaded_options = None
_globals['_MESSAGEREQUIRED'].fields_by_name['val']._serialized_options = b'\272H\003\310\001\001'
_globals['_MESSAGEREQUIREDBUTOPTIONAL'].fields_by_name['val']._loaded_options = None
_globals['_MESSAGEREQUIREDBUTOPTIONAL'].fields_by_name['val']._serialized_options = b'\272H\003\310\001\001'
_globals['_MESSAGEREQUIREDONEOF'].oneofs_by_name['one']._loaded_options = None
_globals['_MESSAGEREQUIREDONEOF'].oneofs_by_name['one']._serialized_options = b'\272H\002\010\001'
_globals['_MESSAGEREQUIREDONEOF'].fields_by_name['val']._loaded_options = None
_globals['_MESSAGEREQUIREDONEOF'].fields_by_name['val']._serialized_options = b'\272H\003\310\001\001'
_globals['_MESSAGEONEOFSINGLEFIELD']._loaded_options = None
_globals['_MESSAGEONEOFSINGLEFIELD']._serialized_options = b'\272H\r\"\013\n\tstr_field'
_globals['_MESSAGEONEOFMULTIPLEFIELDS']._loaded_options = None
_globals['_MESSAGEONEOFMULTIPLEFIELDS']._serialized_options = b'\272H\031\"\027\n\tstr_field\n\nbool_field'
_globals['_MESSAGEONEOFMULTIPLEFIELDSREQUIRED']._loaded_options = None
_globals['_MESSAGEONEOFMULTIPLEFIELDSREQUIRED']._serialized_options = b'\272H\033\"\031\n\tstr_field\n\nbool_field\020\001'
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._loaded_options = None
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._serialized_options = b'\272H\007\"\005\n\003xxx'
_globals['_TESTMSG']._serialized_start=168
_globals['_TESTMSG']._serialized_end=276
_globals['_MESSAGENONE']._serialized_start=278
_globals['_MESSAGENONE']._serialized_end=373
_globals['_MESSAGENONE_NONEMSG']._serialized_start=364
_globals['_MESSAGENONE_NONEMSG']._serialized_end=373
_globals['_MESSAGEDISABLED']._serialized_start=375
_globals['_MESSAGEDISABLED']._serialized_end=426
_globals['_MESSAGE']._serialized_start=428
_globals['_MESSAGE']._serialized_end=496
_globals['_MESSAGECROSSPACKAGE']._serialized_start=498
_globals['_MESSAGECROSSPACKAGE']._serialized_end=590
_globals['_MESSAGESKIP']._serialized_start=592
_globals['_MESSAGESKIP']._serialized_end=672
_globals['_MESSAGEREQUIRED']._serialized_start=674
_globals['_MESSAGEREQUIRED']._serialized_end=758
_globals['_MESSAGEREQUIREDBUTOPTIONAL']._serialized_start=760
_globals['_MESSAGEREQUIREDBUTOPTIONAL']._serialized_end=868
_globals['_MESSAGEREQUIREDONEOF']._serialized_start=870
_globals['_MESSAGEREQUIREDONEOF']._serialized_end=975
_globals['_MESSAGEWITH3DINSIDE']._serialized_start=977
_globals['_MESSAGEWITH3DINSIDE']._serialized_end=998
_globals['_MESSAGEONEOFSINGLEFIELD']._serialized_start=1000
_globals['_MESSAGEONEOFSINGLEFIELD']._serialized_end=1103
_globals['_MESSAGEONEOFMULTIPLEFIELDS']._serialized_start=1105
_globals['_MESSAGEONEOFMULTIPLEFIELDS']._serialized_end=1223
_globals['_MESSAGEONEOFMULTIPLEFIELDSREQUIRED']._serialized_start=1226
_globals['_MESSAGEONEOFMULTIPLEFIELDSREQUIRED']._serialized_end=1354
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._serialized_start=1356
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._serialized_end=1427
# @@protoc_insertion_point(module_scope)