-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmessages_pb2.py
More file actions
143 lines (136 loc) · 13.3 KB
/
messages_pb2.py
File metadata and controls
143 lines (136 loc) · 13.3 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# 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\"q\n\x1fMessageOneofSingleFieldRequired\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\x12\xbaH\x0f\"\r\n\tstr_field\x10\x01\"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\"\xb5\x01\n MessageOneofMultipleSharedFields\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField\x12\x1b\n\tint_field\x18\x03 \x01(\x05R\x08intField:8\xbaH5\"\x19\n\tstr_field\n\nbool_field\x10\x01\"\x18\n\tstr_field\n\tint_field\x10\x01\"G\n\x1cMessageOneofUnknownFieldName\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField:\n\xbaH\x07\"\x05\n\x03xxx\"\x81\x01\n\x1aMessageOneofDuplicateField\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\'\xbaH$\"\"\n\tstr_field\n\nbool_field\n\tstr_field\"[\n\x16MessageOneofZeroFields\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\x05\xbaH\x02\"\x00\"h\n\x19MessageOneofUnsatisfiable\x12\x0c\n\x01\x61\x18\x01 \x01(\x08R\x01\x61\x12\x0c\n\x01\x62\x18\x02 \x01(\x08R\x01\x62\x12\x0c\n\x01\x63\x18\x03 \x01(\x08R\x01\x63:!\xbaH\x1e\"\x08\n\x01\x61\n\x01\x62\x10\x01\"\x08\n\x01\x62\n\x01\x63\x10\x01\"\x08\n\x01\x61\n\x01\x63\x10\x01\"\x82\x01\n\x1dMessageOneofIgnoreUnpopulated\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12&\n\nbool_field\x18\x02 \x01(\x08\x42\x07\xbaH\x04j\x02\x08\x01R\tboolField:\x1c\xbaH\x19\"\x17\n\tstr_field\n\nbool_field\"\x8c\x01\n%MessageOneofIgnoreUnpopulatedRequired\x12\x1b\n\tstr_field\x18\x01 \x01(\tR\x08strField\x12&\n\nbool_field\x18\x02 \x01(\x08\x42\x07\xbaH\x04j\x02\x08\x01R\tboolField:\x1e\xbaH\x1b\"\x19\n\tstr_field\n\nbool_field\x10\x01\"\xa7\x01\n\x1aMessageOneofIgnoreOverride\x12L\n\tmsg_field\x18\x01 \x01(\x0b\x32\'.buf.validate.conformance.cases.TestMsgB\x06\xbaH\x03\xd8\x01\x03R\x08msgField\x12\x1d\n\nbool_field\x18\x02 \x01(\x08R\tboolField:\x1c\xbaH\x19\"\x17\n\tmsg_field\n\nbool_fieldB\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['_MESSAGEONEOFSINGLEFIELDREQUIRED']._loaded_options = None
_globals['_MESSAGEONEOFSINGLEFIELDREQUIRED']._serialized_options = b'\272H\017\"\r\n\tstr_field\020\001'
_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['_MESSAGEONEOFMULTIPLESHAREDFIELDS']._loaded_options = None
_globals['_MESSAGEONEOFMULTIPLESHAREDFIELDS']._serialized_options = b'\272H5\"\031\n\tstr_field\n\nbool_field\020\001\"\030\n\tstr_field\n\tint_field\020\001'
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._loaded_options = None
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._serialized_options = b'\272H\007\"\005\n\003xxx'
_globals['_MESSAGEONEOFDUPLICATEFIELD']._loaded_options = None
_globals['_MESSAGEONEOFDUPLICATEFIELD']._serialized_options = b'\272H$\"\"\n\tstr_field\n\nbool_field\n\tstr_field'
_globals['_MESSAGEONEOFZEROFIELDS']._loaded_options = None
_globals['_MESSAGEONEOFZEROFIELDS']._serialized_options = b'\272H\002\"\000'
_globals['_MESSAGEONEOFUNSATISFIABLE']._loaded_options = None
_globals['_MESSAGEONEOFUNSATISFIABLE']._serialized_options = b'\272H\036\"\010\n\001a\n\001b\020\001\"\010\n\001b\n\001c\020\001\"\010\n\001a\n\001c\020\001'
_globals['_MESSAGEONEOFIGNOREUNPOPULATED'].fields_by_name['bool_field']._loaded_options = None
_globals['_MESSAGEONEOFIGNOREUNPOPULATED'].fields_by_name['bool_field']._serialized_options = b'\272H\004j\002\010\001'
_globals['_MESSAGEONEOFIGNOREUNPOPULATED']._loaded_options = None
_globals['_MESSAGEONEOFIGNOREUNPOPULATED']._serialized_options = b'\272H\031\"\027\n\tstr_field\n\nbool_field'
_globals['_MESSAGEONEOFIGNOREUNPOPULATEDREQUIRED'].fields_by_name['bool_field']._loaded_options = None
_globals['_MESSAGEONEOFIGNOREUNPOPULATEDREQUIRED'].fields_by_name['bool_field']._serialized_options = b'\272H\004j\002\010\001'
_globals['_MESSAGEONEOFIGNOREUNPOPULATEDREQUIRED']._loaded_options = None
_globals['_MESSAGEONEOFIGNOREUNPOPULATEDREQUIRED']._serialized_options = b'\272H\033\"\031\n\tstr_field\n\nbool_field\020\001'
_globals['_MESSAGEONEOFIGNOREOVERRIDE'].fields_by_name['msg_field']._loaded_options = None
_globals['_MESSAGEONEOFIGNOREOVERRIDE'].fields_by_name['msg_field']._serialized_options = b'\272H\003\330\001\003'
_globals['_MESSAGEONEOFIGNOREOVERRIDE']._loaded_options = None
_globals['_MESSAGEONEOFIGNOREOVERRIDE']._serialized_options = b'\272H\031\"\027\n\tmsg_field\n\nbool_field'
_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['_MESSAGEONEOFSINGLEFIELDREQUIRED']._serialized_start=1105
_globals['_MESSAGEONEOFSINGLEFIELDREQUIRED']._serialized_end=1218
_globals['_MESSAGEONEOFMULTIPLEFIELDS']._serialized_start=1220
_globals['_MESSAGEONEOFMULTIPLEFIELDS']._serialized_end=1338
_globals['_MESSAGEONEOFMULTIPLEFIELDSREQUIRED']._serialized_start=1341
_globals['_MESSAGEONEOFMULTIPLEFIELDSREQUIRED']._serialized_end=1469
_globals['_MESSAGEONEOFMULTIPLESHAREDFIELDS']._serialized_start=1472
_globals['_MESSAGEONEOFMULTIPLESHAREDFIELDS']._serialized_end=1653
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._serialized_start=1655
_globals['_MESSAGEONEOFUNKNOWNFIELDNAME']._serialized_end=1726
_globals['_MESSAGEONEOFDUPLICATEFIELD']._serialized_start=1729
_globals['_MESSAGEONEOFDUPLICATEFIELD']._serialized_end=1858
_globals['_MESSAGEONEOFZEROFIELDS']._serialized_start=1860
_globals['_MESSAGEONEOFZEROFIELDS']._serialized_end=1951
_globals['_MESSAGEONEOFUNSATISFIABLE']._serialized_start=1953
_globals['_MESSAGEONEOFUNSATISFIABLE']._serialized_end=2057
_globals['_MESSAGEONEOFIGNOREUNPOPULATED']._serialized_start=2060
_globals['_MESSAGEONEOFIGNOREUNPOPULATED']._serialized_end=2190
_globals['_MESSAGEONEOFIGNOREUNPOPULATEDREQUIRED']._serialized_start=2193
_globals['_MESSAGEONEOFIGNOREUNPOPULATEDREQUIRED']._serialized_end=2333
_globals['_MESSAGEONEOFIGNOREOVERRIDE']._serialized_start=2336
_globals['_MESSAGEONEOFIGNOREOVERRIDE']._serialized_end=2503
# @@protoc_insertion_point(module_scope)