-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpredefined_rules_proto2_pb2.pyi
More file actions
310 lines (269 loc) · 13.1 KB
/
predefined_rules_proto2_pb2.pyi
File metadata and controls
310 lines (269 loc) · 13.1 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# Copyright 2023-2026 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.
from buf.validate import validate_pb2 as _validate_pb2
from google.protobuf import duration_pb2 as _duration_pb2
from google.protobuf import timestamp_pb2 as _timestamp_pb2
from google.protobuf import wrappers_pb2 as _wrappers_pb2
from google.protobuf.internal import containers as _containers
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
DESCRIPTOR: _descriptor.FileDescriptor
FLOAT_ABS_RANGE_PROTO2_FIELD_NUMBER: _ClassVar[int]
float_abs_range_proto2: _descriptor.FieldDescriptor
DOUBLE_ABS_RANGE_PROTO2_FIELD_NUMBER: _ClassVar[int]
double_abs_range_proto2: _descriptor.FieldDescriptor
INT32_ABS_IN_PROTO2_FIELD_NUMBER: _ClassVar[int]
int32_abs_in_proto2: _descriptor.FieldDescriptor
INT64_ABS_IN_PROTO2_FIELD_NUMBER: _ClassVar[int]
int64_abs_in_proto2: _descriptor.FieldDescriptor
UINT32_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
uint32_even_proto2: _descriptor.FieldDescriptor
UINT64_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
uint64_even_proto2: _descriptor.FieldDescriptor
SINT32_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
sint32_even_proto2: _descriptor.FieldDescriptor
SINT64_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
sint64_even_proto2: _descriptor.FieldDescriptor
FIXED32_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
fixed32_even_proto2: _descriptor.FieldDescriptor
FIXED64_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
fixed64_even_proto2: _descriptor.FieldDescriptor
SFIXED32_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
sfixed32_even_proto2: _descriptor.FieldDescriptor
SFIXED64_EVEN_PROTO2_FIELD_NUMBER: _ClassVar[int]
sfixed64_even_proto2: _descriptor.FieldDescriptor
BOOL_FALSE_PROTO2_FIELD_NUMBER: _ClassVar[int]
bool_false_proto2: _descriptor.FieldDescriptor
STRING_VALID_PATH_PROTO2_FIELD_NUMBER: _ClassVar[int]
string_valid_path_proto2: _descriptor.FieldDescriptor
BYTES_VALID_PATH_PROTO2_FIELD_NUMBER: _ClassVar[int]
bytes_valid_path_proto2: _descriptor.FieldDescriptor
ENUM_NON_ZERO_PROTO2_FIELD_NUMBER: _ClassVar[int]
enum_non_zero_proto2: _descriptor.FieldDescriptor
REPEATED_AT_LEAST_FIVE_PROTO2_FIELD_NUMBER: _ClassVar[int]
repeated_at_least_five_proto2: _descriptor.FieldDescriptor
DURATION_TOO_LONG_PROTO2_FIELD_NUMBER: _ClassVar[int]
duration_too_long_proto2: _descriptor.FieldDescriptor
TIMESTAMP_IN_RANGE_PROTO2_FIELD_NUMBER: _ClassVar[int]
timestamp_in_range_proto2: _descriptor.FieldDescriptor
class PredefinedFloatRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: float
def __init__(self, val: _Optional[float] = ...) -> None: ...
class PredefinedDoubleRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: float
def __init__(self, val: _Optional[float] = ...) -> None: ...
class PredefinedInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedUInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedUInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedSInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedSInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedFixed32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedFixed64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedSFixed32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedSFixed64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: int
def __init__(self, val: _Optional[int] = ...) -> None: ...
class PredefinedBoolRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: bool
def __init__(self, val: bool = ...) -> None: ...
class PredefinedStringRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: str
def __init__(self, val: _Optional[str] = ...) -> None: ...
class PredefinedBytesRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: bytes
def __init__(self, val: _Optional[bytes] = ...) -> None: ...
class PredefinedEnumRuleProto2(_message.Message):
__slots__ = ("val",)
class EnumProto2(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
ENUM_PROTO2_ZERO_UNSPECIFIED: _ClassVar[PredefinedEnumRuleProto2.EnumProto2]
ENUM_PROTO2_ONE: _ClassVar[PredefinedEnumRuleProto2.EnumProto2]
ENUM_PROTO2_ZERO_UNSPECIFIED: PredefinedEnumRuleProto2.EnumProto2
ENUM_PROTO2_ONE: PredefinedEnumRuleProto2.EnumProto2
VAL_FIELD_NUMBER: _ClassVar[int]
val: PredefinedEnumRuleProto2.EnumProto2
def __init__(self, val: _Optional[_Union[PredefinedEnumRuleProto2.EnumProto2, str]] = ...) -> None: ...
class PredefinedRepeatedRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedScalarFieldContainer[int]
def __init__(self, val: _Optional[_Iterable[int]] = ...) -> None: ...
class PredefinedDurationRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _duration_pb2.Duration
def __init__(self, val: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
class PredefinedTimestampRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _timestamp_pb2.Timestamp
def __init__(self, val: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
class PredefinedWrappedFloatRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.FloatValue
def __init__(self, val: _Optional[_Union[_wrappers_pb2.FloatValue, _Mapping]] = ...) -> None: ...
class PredefinedWrappedDoubleRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.DoubleValue
def __init__(self, val: _Optional[_Union[_wrappers_pb2.DoubleValue, _Mapping]] = ...) -> None: ...
class PredefinedWrappedInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.Int32Value
def __init__(self, val: _Optional[_Union[_wrappers_pb2.Int32Value, _Mapping]] = ...) -> None: ...
class PredefinedWrappedInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.Int64Value
def __init__(self, val: _Optional[_Union[_wrappers_pb2.Int64Value, _Mapping]] = ...) -> None: ...
class PredefinedWrappedUInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.UInt32Value
def __init__(self, val: _Optional[_Union[_wrappers_pb2.UInt32Value, _Mapping]] = ...) -> None: ...
class PredefinedWrappedUInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.UInt64Value
def __init__(self, val: _Optional[_Union[_wrappers_pb2.UInt64Value, _Mapping]] = ...) -> None: ...
class PredefinedWrappedBoolRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.BoolValue
def __init__(self, val: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ...) -> None: ...
class PredefinedWrappedStringRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.StringValue
def __init__(self, val: _Optional[_Union[_wrappers_pb2.StringValue, _Mapping]] = ...) -> None: ...
class PredefinedWrappedBytesRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _wrappers_pb2.BytesValue
def __init__(self, val: _Optional[_Union[_wrappers_pb2.BytesValue, _Mapping]] = ...) -> None: ...
class PredefinedRepeatedWrappedFloatRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.FloatValue]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.FloatValue, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedDoubleRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.DoubleValue]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.DoubleValue, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.Int32Value]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.Int32Value, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.Int64Value]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.Int64Value, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedUInt32RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.UInt32Value]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.UInt32Value, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedUInt64RuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.UInt64Value]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.UInt64Value, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedBoolRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.BoolValue]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.BoolValue, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedStringRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.StringValue]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.StringValue, _Mapping]]] = ...) -> None: ...
class PredefinedRepeatedWrappedBytesRuleProto2(_message.Message):
__slots__ = ("val",)
VAL_FIELD_NUMBER: _ClassVar[int]
val: _containers.RepeatedCompositeFieldContainer[_wrappers_pb2.BytesValue]
def __init__(self, val: _Optional[_Iterable[_Union[_wrappers_pb2.BytesValue, _Mapping]]] = ...) -> None: ...
class PredefinedAndCustomRuleProto2(_message.Message):
__slots__ = ("a", "b")
class Nested(_message.Message):
__slots__ = ("c",)
C_FIELD_NUMBER: _ClassVar[int]
c: int
def __init__(self, c: _Optional[int] = ...) -> None: ...
A_FIELD_NUMBER: _ClassVar[int]
B_FIELD_NUMBER: _ClassVar[int]
a: int
b: PredefinedAndCustomRuleProto2.Nested
def __init__(self, a: _Optional[int] = ..., b: _Optional[_Union[PredefinedAndCustomRuleProto2.Nested, _Mapping]] = ...) -> None: ...
class StandardPredefinedAndCustomRuleProto2(_message.Message):
__slots__ = ("a",)
A_FIELD_NUMBER: _ClassVar[int]
a: int
def __init__(self, a: _Optional[int] = ...) -> None: ...