1 from google.protobuf.internal.containers import (
\r
2 RepeatedCompositeFieldContainer,
\r
3 RepeatedScalarFieldContainer,
\r
5 from google.protobuf.message import (
\r
18 class FileDescriptorSet(Message):
\r
21 def file(self) -> RepeatedCompositeFieldContainer[FileDescriptorProto]: ...
\r
24 file: Optional[Iterable[FileDescriptorProto]] = ...,
\r
28 def FromString(cls, s: bytes) -> FileDescriptorSet: ...
\r
31 class FileDescriptorProto(Message):
\r
32 name = ... # type: Text
\r
33 package = ... # type: Text
\r
34 dependency = ... # type: RepeatedScalarFieldContainer[Text]
\r
35 public_dependency = ... # type: RepeatedScalarFieldContainer[int]
\r
36 weak_dependency = ... # type: RepeatedScalarFieldContainer[int]
\r
37 syntax = ... # type: Text
\r
41 self) -> RepeatedCompositeFieldContainer[DescriptorProto]: ...
\r
45 self) -> RepeatedCompositeFieldContainer[EnumDescriptorProto]: ...
\r
49 self) -> RepeatedCompositeFieldContainer[ServiceDescriptorProto]: ...
\r
53 self) -> RepeatedCompositeFieldContainer[FieldDescriptorProto]: ...
\r
56 def options(self) -> FileOptions: ...
\r
59 def source_code_info(self) -> SourceCodeInfo: ...
\r
62 name: Optional[Text] = ...,
\r
63 package: Optional[Text] = ...,
\r
64 dependency: Optional[Iterable[Text]] = ...,
\r
65 public_dependency: Optional[Iterable[int]] = ...,
\r
66 weak_dependency: Optional[Iterable[int]] = ...,
\r
67 message_type: Optional[Iterable[DescriptorProto]] = ...,
\r
68 enum_type: Optional[Iterable[EnumDescriptorProto]] = ...,
\r
69 service: Optional[Iterable[ServiceDescriptorProto]] = ...,
\r
70 extension: Optional[Iterable[FieldDescriptorProto]] = ...,
\r
71 options: Optional[FileOptions] = ...,
\r
72 source_code_info: Optional[SourceCodeInfo] = ...,
\r
73 syntax: Optional[Text] = ...,
\r
77 def FromString(cls, s: bytes) -> FileDescriptorProto: ...
\r
80 class DescriptorProto(Message):
\r
82 class ExtensionRange(Message):
\r
83 start = ... # type: int
\r
84 end = ... # type: int
\r
87 def options(self) -> ExtensionRangeOptions: ...
\r
90 start: Optional[int] = ...,
\r
91 end: Optional[int] = ...,
\r
92 options: Optional[ExtensionRangeOptions] = ...,
\r
96 def FromString(cls, s: bytes) -> DescriptorProto.ExtensionRange: ...
\r
98 class ReservedRange(Message):
\r
99 start = ... # type: int
\r
100 end = ... # type: int
\r
103 start: Optional[int] = ...,
\r
104 end: Optional[int] = ...,
\r
108 def FromString(cls, s: bytes) -> DescriptorProto.ReservedRange: ...
\r
109 name = ... # type: Text
\r
110 reserved_name = ... # type: RepeatedScalarFieldContainer[Text]
\r
114 self) -> RepeatedCompositeFieldContainer[FieldDescriptorProto]: ...
\r
118 self) -> RepeatedCompositeFieldContainer[FieldDescriptorProto]: ...
\r
122 self) -> RepeatedCompositeFieldContainer[DescriptorProto]: ...
\r
126 self) -> RepeatedCompositeFieldContainer[EnumDescriptorProto]: ...
\r
129 def extension_range(
\r
130 self) -> RepeatedCompositeFieldContainer[DescriptorProto.ExtensionRange]: ...
\r
134 self) -> RepeatedCompositeFieldContainer[OneofDescriptorProto]: ...
\r
137 def options(self) -> MessageOptions: ...
\r
140 def reserved_range(
\r
141 self) -> RepeatedCompositeFieldContainer[DescriptorProto.ReservedRange]: ...
\r
144 name: Optional[Text] = ...,
\r
145 field: Optional[Iterable[FieldDescriptorProto]] = ...,
\r
146 extension: Optional[Iterable[FieldDescriptorProto]] = ...,
\r
147 nested_type: Optional[Iterable[DescriptorProto]] = ...,
\r
148 enum_type: Optional[Iterable[EnumDescriptorProto]] = ...,
\r
149 extension_range: Optional[Iterable[DescriptorProto.ExtensionRange]] = ...,
\r
150 oneof_decl: Optional[Iterable[OneofDescriptorProto]] = ...,
\r
151 options: Optional[MessageOptions] = ...,
\r
152 reserved_range: Optional[Iterable[DescriptorProto.ReservedRange]] = ...,
\r
153 reserved_name: Optional[Iterable[Text]] = ...,
\r
157 def FromString(cls, s: bytes) -> DescriptorProto: ...
\r
160 class ExtensionRangeOptions(Message):
\r
163 def uninterpreted_option(
\r
164 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
167 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
171 def FromString(cls, s: bytes) -> ExtensionRangeOptions: ...
\r
174 class FieldDescriptorProto(Message):
\r
179 def Name(cls, number: int) -> bytes: ...
\r
182 def Value(cls, name: bytes) -> FieldDescriptorProto.Type: ...
\r
185 def keys(cls) -> List[bytes]: ...
\r
188 def values(cls) -> List[FieldDescriptorProto.Type]: ...
\r
191 def items(cls) -> List[Tuple[bytes, FieldDescriptorProto.Type]]: ...
\r
206 TYPE_SFIXED32: Type
\r
207 TYPE_SFIXED64: Type
\r
214 def Name(cls, number: int) -> bytes: ...
\r
217 def Value(cls, name: bytes) -> FieldDescriptorProto.Label: ...
\r
220 def keys(cls) -> List[bytes]: ...
\r
223 def values(cls) -> List[FieldDescriptorProto.Label]: ...
\r
226 def items(cls) -> List[Tuple[bytes, FieldDescriptorProto.Label]]: ...
\r
227 LABEL_OPTIONAL: Label
\r
228 LABEL_REQUIRED: Label
\r
229 LABEL_REPEATED: Label
\r
230 name = ... # type: Text
\r
231 number = ... # type: int
\r
232 label = ... # type: FieldDescriptorProto.Label
\r
233 type = ... # type: FieldDescriptorProto.Type
\r
234 type_name = ... # type: Text
\r
235 extendee = ... # type: Text
\r
236 default_value = ... # type: Text
\r
237 oneof_index = ... # type: int
\r
238 json_name = ... # type: Text
\r
241 def options(self) -> FieldOptions: ...
\r
244 name: Optional[Text] = ...,
\r
245 number: Optional[int] = ...,
\r
246 label: Optional[FieldDescriptorProto.Label] = ...,
\r
247 type: Optional[FieldDescriptorProto.Type] = ...,
\r
248 type_name: Optional[Text] = ...,
\r
249 extendee: Optional[Text] = ...,
\r
250 default_value: Optional[Text] = ...,
\r
251 oneof_index: Optional[int] = ...,
\r
252 json_name: Optional[Text] = ...,
\r
253 options: Optional[FieldOptions] = ...,
\r
257 def FromString(cls, s: bytes) -> FieldDescriptorProto: ...
\r
260 class OneofDescriptorProto(Message):
\r
261 name = ... # type: Text
\r
264 def options(self) -> OneofOptions: ...
\r
267 name: Optional[Text] = ...,
\r
268 options: Optional[OneofOptions] = ...,
\r
272 def FromString(cls, s: bytes) -> OneofDescriptorProto: ...
\r
275 class EnumDescriptorProto(Message):
\r
277 class EnumReservedRange(Message):
\r
278 start = ... # type: int
\r
279 end = ... # type: int
\r
282 start: Optional[int] = ...,
\r
283 end: Optional[int] = ...,
\r
288 cls, s: bytes) -> EnumDescriptorProto.EnumReservedRange: ...
\r
289 name = ... # type: Text
\r
290 reserved_name = ... # type: RepeatedScalarFieldContainer[Text]
\r
294 self) -> RepeatedCompositeFieldContainer[EnumValueDescriptorProto]: ...
\r
297 def options(self) -> EnumOptions: ...
\r
300 def reserved_range(
\r
301 self) -> RepeatedCompositeFieldContainer[EnumDescriptorProto.EnumReservedRange]: ...
\r
304 name: Optional[Text] = ...,
\r
305 value: Optional[Iterable[EnumValueDescriptorProto]] = ...,
\r
306 options: Optional[EnumOptions] = ...,
\r
307 reserved_range: Optional[Iterable[EnumDescriptorProto.EnumReservedRange]] = ...,
\r
308 reserved_name: Optional[Iterable[Text]] = ...,
\r
312 def FromString(cls, s: bytes) -> EnumDescriptorProto: ...
\r
315 class EnumValueDescriptorProto(Message):
\r
316 name = ... # type: Text
\r
317 number = ... # type: int
\r
320 def options(self) -> EnumValueOptions: ...
\r
323 name: Optional[Text] = ...,
\r
324 number: Optional[int] = ...,
\r
325 options: Optional[EnumValueOptions] = ...,
\r
329 def FromString(cls, s: bytes) -> EnumValueDescriptorProto: ...
\r
332 class ServiceDescriptorProto(Message):
\r
333 name = ... # type: Text
\r
337 self) -> RepeatedCompositeFieldContainer[MethodDescriptorProto]: ...
\r
340 def options(self) -> ServiceOptions: ...
\r
343 name: Optional[Text] = ...,
\r
344 method: Optional[Iterable[MethodDescriptorProto]] = ...,
\r
345 options: Optional[ServiceOptions] = ...,
\r
349 def FromString(cls, s: bytes) -> ServiceDescriptorProto: ...
\r
352 class MethodDescriptorProto(Message):
\r
353 name = ... # type: Text
\r
354 input_type = ... # type: Text
\r
355 output_type = ... # type: Text
\r
356 client_streaming = ... # type: bool
\r
357 server_streaming = ... # type: bool
\r
360 def options(self) -> MethodOptions: ...
\r
363 name: Optional[Text] = ...,
\r
364 input_type: Optional[Text] = ...,
\r
365 output_type: Optional[Text] = ...,
\r
366 options: Optional[MethodOptions] = ...,
\r
367 client_streaming: Optional[bool] = ...,
\r
368 server_streaming: Optional[bool] = ...,
\r
372 def FromString(cls, s: bytes) -> MethodDescriptorProto: ...
\r
375 class FileOptions(Message):
\r
377 class OptimizeMode(int):
\r
380 def Name(cls, number: int) -> bytes: ...
\r
383 def Value(cls, name: bytes) -> FileOptions.OptimizeMode: ...
\r
386 def keys(cls) -> List[bytes]: ...
\r
389 def values(cls) -> List[FileOptions.OptimizeMode]: ...
\r
392 def items(cls) -> List[Tuple[bytes, FileOptions.OptimizeMode]]: ...
\r
393 SPEED: OptimizeMode
\r
394 CODE_SIZE: OptimizeMode
\r
395 LITE_RUNTIME: OptimizeMode
\r
396 java_package = ... # type: Text
\r
397 java_outer_classname = ... # type: Text
\r
398 java_multiple_files = ... # type: bool
\r
399 java_generate_equals_and_hash = ... # type: bool
\r
400 java_string_check_utf8 = ... # type: bool
\r
401 optimize_for = ... # type: FileOptions.OptimizeMode
\r
402 go_package = ... # type: Text
\r
403 cc_generic_services = ... # type: bool
\r
404 java_generic_services = ... # type: bool
\r
405 py_generic_services = ... # type: bool
\r
406 php_generic_services = ... # type: bool
\r
407 deprecated = ... # type: bool
\r
408 cc_enable_arenas = ... # type: bool
\r
409 objc_class_prefix = ... # type: Text
\r
410 csharp_namespace = ... # type: Text
\r
411 swift_prefix = ... # type: Text
\r
412 php_class_prefix = ... # type: Text
\r
413 php_namespace = ... # type: Text
\r
416 def uninterpreted_option(
\r
417 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
420 java_package: Optional[Text] = ...,
\r
421 java_outer_classname: Optional[Text] = ...,
\r
422 java_multiple_files: Optional[bool] = ...,
\r
423 java_generate_equals_and_hash: Optional[bool] = ...,
\r
424 java_string_check_utf8: Optional[bool] = ...,
\r
425 optimize_for: Optional[FileOptions.OptimizeMode] = ...,
\r
426 go_package: Optional[Text] = ...,
\r
427 cc_generic_services: Optional[bool] = ...,
\r
428 java_generic_services: Optional[bool] = ...,
\r
429 py_generic_services: Optional[bool] = ...,
\r
430 php_generic_services: Optional[bool] = ...,
\r
431 deprecated: Optional[bool] = ...,
\r
432 cc_enable_arenas: Optional[bool] = ...,
\r
433 objc_class_prefix: Optional[Text] = ...,
\r
434 csharp_namespace: Optional[Text] = ...,
\r
435 swift_prefix: Optional[Text] = ...,
\r
436 php_class_prefix: Optional[Text] = ...,
\r
437 php_namespace: Optional[Text] = ...,
\r
438 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
442 def FromString(cls, s: bytes) -> FileOptions: ...
\r
445 class MessageOptions(Message):
\r
446 message_set_wire_format = ... # type: bool
\r
447 no_standard_descriptor_accessor = ... # type: bool
\r
448 deprecated = ... # type: bool
\r
449 map_entry = ... # type: bool
\r
452 def uninterpreted_option(
\r
453 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
456 message_set_wire_format: Optional[bool] = ...,
\r
457 no_standard_descriptor_accessor: Optional[bool] = ...,
\r
458 deprecated: Optional[bool] = ...,
\r
459 map_entry: Optional[bool] = ...,
\r
460 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
464 def FromString(cls, s: bytes) -> MessageOptions: ...
\r
467 class FieldOptions(Message):
\r
472 def Name(cls, number: int) -> bytes: ...
\r
475 def Value(cls, name: bytes) -> FieldOptions.CType: ...
\r
478 def keys(cls) -> List[bytes]: ...
\r
481 def values(cls) -> List[FieldOptions.CType]: ...
\r
484 def items(cls) -> List[Tuple[bytes, FieldOptions.CType]]: ...
\r
487 STRING_PIECE: CType
\r
492 def Name(cls, number: int) -> bytes: ...
\r
495 def Value(cls, name: bytes) -> FieldOptions.JSType: ...
\r
498 def keys(cls) -> List[bytes]: ...
\r
501 def values(cls) -> List[FieldOptions.JSType]: ...
\r
504 def items(cls) -> List[Tuple[bytes, FieldOptions.JSType]]: ...
\r
508 ctype = ... # type: FieldOptions.CType
\r
509 packed = ... # type: bool
\r
510 jstype = ... # type: FieldOptions.JSType
\r
511 lazy = ... # type: bool
\r
512 deprecated = ... # type: bool
\r
513 weak = ... # type: bool
\r
516 def uninterpreted_option(
\r
517 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
520 ctype: Optional[FieldOptions.CType] = ...,
\r
521 packed: Optional[bool] = ...,
\r
522 jstype: Optional[FieldOptions.JSType] = ...,
\r
523 lazy: Optional[bool] = ...,
\r
524 deprecated: Optional[bool] = ...,
\r
525 weak: Optional[bool] = ...,
\r
526 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
530 def FromString(cls, s: bytes) -> FieldOptions: ...
\r
533 class OneofOptions(Message):
\r
536 def uninterpreted_option(
\r
537 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
540 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
544 def FromString(cls, s: bytes) -> OneofOptions: ...
\r
547 class EnumOptions(Message):
\r
548 allow_alias = ... # type: bool
\r
549 deprecated = ... # type: bool
\r
552 def uninterpreted_option(
\r
553 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
556 allow_alias: Optional[bool] = ...,
\r
557 deprecated: Optional[bool] = ...,
\r
558 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
562 def FromString(cls, s: bytes) -> EnumOptions: ...
\r
565 class EnumValueOptions(Message):
\r
566 deprecated = ... # type: bool
\r
569 def uninterpreted_option(
\r
570 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
573 deprecated: Optional[bool] = ...,
\r
574 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
578 def FromString(cls, s: bytes) -> EnumValueOptions: ...
\r
581 class ServiceOptions(Message):
\r
582 deprecated = ... # type: bool
\r
585 def uninterpreted_option(
\r
586 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
589 deprecated: Optional[bool] = ...,
\r
590 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
594 def FromString(cls, s: bytes) -> ServiceOptions: ...
\r
597 class MethodOptions(Message):
\r
599 class IdempotencyLevel(int):
\r
602 def Name(cls, number: int) -> bytes: ...
\r
605 def Value(cls, name: bytes) -> MethodOptions.IdempotencyLevel: ...
\r
608 def keys(cls) -> List[bytes]: ...
\r
611 def values(cls) -> List[MethodOptions.IdempotencyLevel]: ...
\r
614 def items(cls) -> List[Tuple[bytes, MethodOptions.IdempotencyLevel]]: ...
\r
615 IDEMPOTENCY_UNKNOWN: IdempotencyLevel
\r
616 NO_SIDE_EFFECTS: IdempotencyLevel
\r
617 IDEMPOTENT: IdempotencyLevel
\r
618 deprecated = ... # type: bool
\r
619 idempotency_level = ... # type: MethodOptions.IdempotencyLevel
\r
622 def uninterpreted_option(
\r
623 self) -> RepeatedCompositeFieldContainer[UninterpretedOption]: ...
\r
626 deprecated: Optional[bool] = ...,
\r
627 idempotency_level: Optional[MethodOptions.IdempotencyLevel] = ...,
\r
628 uninterpreted_option: Optional[Iterable[UninterpretedOption]] = ...,
\r
632 def FromString(cls, s: bytes) -> MethodOptions: ...
\r
635 class UninterpretedOption(Message):
\r
637 class NamePart(Message):
\r
638 name_part = ... # type: Text
\r
639 is_extension = ... # type: bool
\r
643 is_extension: bool,
\r
647 def FromString(cls, s: bytes) -> UninterpretedOption.NamePart: ...
\r
648 identifier_value = ... # type: Text
\r
649 positive_int_value = ... # type: int
\r
650 negative_int_value = ... # type: int
\r
651 double_value = ... # type: float
\r
652 string_value = ... # type: bytes
\r
653 aggregate_value = ... # type: Text
\r
657 self) -> RepeatedCompositeFieldContainer[UninterpretedOption.NamePart]: ...
\r
660 name: Optional[Iterable[UninterpretedOption.NamePart]] = ...,
\r
661 identifier_value: Optional[Text] = ...,
\r
662 positive_int_value: Optional[int] = ...,
\r
663 negative_int_value: Optional[int] = ...,
\r
664 double_value: Optional[float] = ...,
\r
665 string_value: Optional[bytes] = ...,
\r
666 aggregate_value: Optional[Text] = ...,
\r
670 def FromString(cls, s: bytes) -> UninterpretedOption: ...
\r
673 class SourceCodeInfo(Message):
\r
675 class Location(Message):
\r
676 path = ... # type: RepeatedScalarFieldContainer[int]
\r
677 span = ... # type: RepeatedScalarFieldContainer[int]
\r
678 leading_comments = ... # type: Text
\r
679 trailing_comments = ... # type: Text
\r
680 leading_detached_comments = ... # type: RepeatedScalarFieldContainer[Text]
\r
683 path: Optional[Iterable[int]] = ...,
\r
684 span: Optional[Iterable[int]] = ...,
\r
685 leading_comments: Optional[Text] = ...,
\r
686 trailing_comments: Optional[Text] = ...,
\r
687 leading_detached_comments: Optional[Iterable[Text]] = ...,
\r
691 def FromString(cls, s: bytes) -> SourceCodeInfo.Location: ...
\r
695 self) -> RepeatedCompositeFieldContainer[SourceCodeInfo.Location]: ...
\r
698 location: Optional[Iterable[SourceCodeInfo.Location]] = ...,
\r
702 def FromString(cls, s: bytes) -> SourceCodeInfo: ...
\r
705 class GeneratedCodeInfo(Message):
\r
707 class Annotation(Message):
\r
708 path = ... # type: RepeatedScalarFieldContainer[int]
\r
709 source_file = ... # type: Text
\r
710 begin = ... # type: int
\r
711 end = ... # type: int
\r
714 path: Optional[Iterable[int]] = ...,
\r
715 source_file: Optional[Text] = ...,
\r
716 begin: Optional[int] = ...,
\r
717 end: Optional[int] = ...,
\r
721 def FromString(cls, s: bytes) -> GeneratedCodeInfo.Annotation: ...
\r
725 self) -> RepeatedCompositeFieldContainer[GeneratedCodeInfo.Annotation]: ...
\r
728 annotation: Optional[Iterable[GeneratedCodeInfo.Annotation]] = ...,
\r
732 def FromString(cls, s: bytes) -> GeneratedCodeInfo: ...
\r