betterproto2-compiler 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  # google/protobuf/duration.proto, google/protobuf/empty.proto, google/protobuf/field_mask.proto,
4
4
  # google/protobuf/source_context.proto, google/protobuf/struct.proto, google/protobuf/timestamp.proto,
5
5
  # google/protobuf/type.proto, google/protobuf/wrappers.proto
6
- # plugin: python-betterproto
6
+ # plugin: python-betterproto2
7
7
  # This file has been @generated
8
8
 
9
9
  __all__ = (
@@ -81,12 +81,12 @@ from typing import (
81
81
  Optional,
82
82
  )
83
83
 
84
- import betterproto
85
- from betterproto.utils import hybridmethod
84
+ import betterproto2
85
+ from betterproto2.utils import hybridmethod
86
86
  from typing_extensions import Self
87
87
 
88
88
 
89
- class Syntax(betterproto.Enum):
89
+ class Syntax(betterproto2.Enum):
90
90
  """The syntax in which a protocol buffer element is defined."""
91
91
 
92
92
  PROTO2 = 0
@@ -96,7 +96,7 @@ class Syntax(betterproto.Enum):
96
96
  """Syntax `proto3`."""
97
97
 
98
98
 
99
- class FieldKind(betterproto.Enum):
99
+ class FieldKind(betterproto2.Enum):
100
100
  """Basic field types."""
101
101
 
102
102
  TYPE_UNKNOWN = 0
@@ -157,7 +157,7 @@ class FieldKind(betterproto.Enum):
157
157
  """Field type sint64."""
158
158
 
159
159
 
160
- class FieldCardinality(betterproto.Enum):
160
+ class FieldCardinality(betterproto2.Enum):
161
161
  """Whether a field is optional, required, or repeated."""
162
162
 
163
163
  CARDINALITY_UNKNOWN = 0
@@ -173,7 +173,7 @@ class FieldCardinality(betterproto.Enum):
173
173
  """For repeated fields."""
174
174
 
175
175
 
176
- class FieldDescriptorProtoType(betterproto.Enum):
176
+ class FieldDescriptorProtoType(betterproto2.Enum):
177
177
  """ """
178
178
 
179
179
  TYPE_DOUBLE = 1
@@ -265,7 +265,7 @@ class FieldDescriptorProtoType(betterproto.Enum):
265
265
  """Uses ZigZag encoding."""
266
266
 
267
267
 
268
- class FieldDescriptorProtoLabel(betterproto.Enum):
268
+ class FieldDescriptorProtoLabel(betterproto2.Enum):
269
269
  """ """
270
270
 
271
271
  LABEL_OPTIONAL = 1
@@ -282,7 +282,7 @@ class FieldDescriptorProtoLabel(betterproto.Enum):
282
282
  """
283
283
 
284
284
 
285
- class FileOptionsOptimizeMode(betterproto.Enum):
285
+ class FileOptionsOptimizeMode(betterproto2.Enum):
286
286
  """Generated classes can be optimized for speed or code size."""
287
287
 
288
288
  SPEED = 1
@@ -299,7 +299,7 @@ class FileOptionsOptimizeMode(betterproto.Enum):
299
299
  """Generate code using MessageLite and the lite runtime."""
300
300
 
301
301
 
302
- class FieldOptionsCType(betterproto.Enum):
302
+ class FieldOptionsCType(betterproto2.Enum):
303
303
  """ """
304
304
 
305
305
  STRING = 0
@@ -316,7 +316,7 @@ class FieldOptionsCType(betterproto.Enum):
316
316
  """
317
317
 
318
318
 
319
- class FieldOptionsJsType(betterproto.Enum):
319
+ class FieldOptionsJsType(betterproto2.Enum):
320
320
  """ """
321
321
 
322
322
  JS_NORMAL = 0
@@ -329,7 +329,7 @@ class FieldOptionsJsType(betterproto.Enum):
329
329
  """Use JavaScript numbers."""
330
330
 
331
331
 
332
- class MethodOptionsIdempotencyLevel(betterproto.Enum):
332
+ class MethodOptionsIdempotencyLevel(betterproto2.Enum):
333
333
  """
334
334
  Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
335
335
  or neither? HTTP based RPC implementation may choose GET verb for safe
@@ -348,7 +348,7 @@ class MethodOptionsIdempotencyLevel(betterproto.Enum):
348
348
  """idempotent, but may have side effects"""
349
349
 
350
350
 
351
- class NullValue(betterproto.Enum):
351
+ class NullValue(betterproto2.Enum):
352
352
  """
353
353
  `NullValue` is a singleton enumeration to represent the null value for the
354
354
  `Value` type union.
@@ -361,7 +361,7 @@ class NullValue(betterproto.Enum):
361
361
 
362
362
 
363
363
  @dataclass(eq=False, repr=False)
364
- class Any(betterproto.Message):
364
+ class Any(betterproto2.Message):
365
365
  """
366
366
  `Any` contains an arbitrary serialized protocol buffer message along with a
367
367
  URL that describes the type of the serialized message.
@@ -443,7 +443,7 @@ class Any(betterproto.Message):
443
443
  }
444
444
  """
445
445
 
446
- type_url: str = betterproto.string_field(1)
446
+ type_url: str = betterproto2.string_field(1)
447
447
  """
448
448
  A URL/resource name that uniquely identifies the type of the serialized
449
449
  protocol buffer message. This string must contain at least
@@ -474,20 +474,20 @@ class Any(betterproto.Message):
474
474
  used with implementation specific semantics.
475
475
  """
476
476
 
477
- value: bytes = betterproto.bytes_field(2)
477
+ value: bytes = betterproto2.bytes_field(2)
478
478
  """
479
479
  Must be a valid serialized protocol buffer of the above specified type.
480
480
  """
481
481
 
482
482
 
483
483
  @dataclass(eq=False, repr=False)
484
- class SourceContext(betterproto.Message):
484
+ class SourceContext(betterproto2.Message):
485
485
  """
486
486
  `SourceContext` represents information about the source of a
487
487
  protobuf element, like the file in which it is defined.
488
488
  """
489
489
 
490
- file_name: str = betterproto.string_field(1)
490
+ file_name: str = betterproto2.string_field(1)
491
491
  """
492
492
  The path-qualified name of the .proto file that contained the associated
493
493
  protobuf element. For example: `"google/protobuf/source_context.proto"`.
@@ -495,115 +495,115 @@ class SourceContext(betterproto.Message):
495
495
 
496
496
 
497
497
  @dataclass(eq=False, repr=False)
498
- class Type(betterproto.Message):
498
+ class Type(betterproto2.Message):
499
499
  """A protocol buffer message type."""
500
500
 
501
- name: str = betterproto.string_field(1)
501
+ name: str = betterproto2.string_field(1)
502
502
  """The fully qualified message name."""
503
503
 
504
- fields: List["Field"] = betterproto.message_field(2, repeated=True)
504
+ fields: List["Field"] = betterproto2.message_field(2, repeated=True)
505
505
  """The list of fields."""
506
506
 
507
- oneofs: List[str] = betterproto.string_field(3, repeated=True)
507
+ oneofs: List[str] = betterproto2.string_field(3, repeated=True)
508
508
  """The list of types appearing in `oneof` definitions in this type."""
509
509
 
510
- options: List["Option"] = betterproto.message_field(4, repeated=True)
510
+ options: List["Option"] = betterproto2.message_field(4, repeated=True)
511
511
  """The protocol buffer options."""
512
512
 
513
- source_context: "SourceContext" = betterproto.message_field(5)
513
+ source_context: "SourceContext" = betterproto2.message_field(5)
514
514
  """The source context."""
515
515
 
516
- syntax: "Syntax" = betterproto.enum_field(6, enum_default_value=lambda: Syntax.try_value(0))
516
+ syntax: "Syntax" = betterproto2.enum_field(6, enum_default_value=lambda: Syntax.try_value(0))
517
517
  """The source syntax."""
518
518
 
519
519
 
520
520
  @dataclass(eq=False, repr=False)
521
- class Field(betterproto.Message):
521
+ class Field(betterproto2.Message):
522
522
  """A single field of a message type."""
523
523
 
524
- kind: "FieldKind" = betterproto.enum_field(1, enum_default_value=lambda: FieldKind.try_value(0))
524
+ kind: "FieldKind" = betterproto2.enum_field(1, enum_default_value=lambda: FieldKind.try_value(0))
525
525
  """The field type."""
526
526
 
527
- cardinality: "FieldCardinality" = betterproto.enum_field(
527
+ cardinality: "FieldCardinality" = betterproto2.enum_field(
528
528
  2, enum_default_value=lambda: FieldCardinality.try_value(0)
529
529
  )
530
530
  """The field cardinality."""
531
531
 
532
- number: int = betterproto.int32_field(3)
532
+ number: int = betterproto2.int32_field(3)
533
533
  """The field number."""
534
534
 
535
- name: str = betterproto.string_field(4)
535
+ name: str = betterproto2.string_field(4)
536
536
  """The field name."""
537
537
 
538
- type_url: str = betterproto.string_field(6)
538
+ type_url: str = betterproto2.string_field(6)
539
539
  """
540
540
  The field type URL, without the scheme, for message or enumeration
541
541
  types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
542
542
  """
543
543
 
544
- oneof_index: int = betterproto.int32_field(7)
544
+ oneof_index: int = betterproto2.int32_field(7)
545
545
  """
546
546
  The index of the field type in `Type.oneofs`, for message or enumeration
547
547
  types. The first type has index 1; zero means the type is not in the list.
548
548
  """
549
549
 
550
- packed: bool = betterproto.bool_field(8)
550
+ packed: bool = betterproto2.bool_field(8)
551
551
  """Whether to use alternative packed wire representation."""
552
552
 
553
- options: List["Option"] = betterproto.message_field(9, repeated=True)
553
+ options: List["Option"] = betterproto2.message_field(9, repeated=True)
554
554
  """The protocol buffer options."""
555
555
 
556
- json_name: str = betterproto.string_field(10)
556
+ json_name: str = betterproto2.string_field(10)
557
557
  """The field JSON name."""
558
558
 
559
- default_value: str = betterproto.string_field(11)
559
+ default_value: str = betterproto2.string_field(11)
560
560
  """
561
561
  The string value of the default value of this field. Proto2 syntax only.
562
562
  """
563
563
 
564
564
 
565
565
  @dataclass(eq=False, repr=False)
566
- class Enum(betterproto.Message):
566
+ class Enum(betterproto2.Message):
567
567
  """Enum type definition."""
568
568
 
569
- name: str = betterproto.string_field(1)
569
+ name: str = betterproto2.string_field(1)
570
570
  """Enum type name."""
571
571
 
572
- enumvalue: List["EnumValue"] = betterproto.message_field(2, wraps=betterproto.TYPE_ENUM, repeated=True)
572
+ enumvalue: List["EnumValue"] = betterproto2.message_field(2, wraps=betterproto2.TYPE_ENUM, repeated=True)
573
573
  """Enum value definitions."""
574
574
 
575
- options: List["Option"] = betterproto.message_field(3, repeated=True)
575
+ options: List["Option"] = betterproto2.message_field(3, repeated=True)
576
576
  """Protocol buffer options."""
577
577
 
578
- source_context: "SourceContext" = betterproto.message_field(4)
578
+ source_context: "SourceContext" = betterproto2.message_field(4)
579
579
  """The source context."""
580
580
 
581
- syntax: "Syntax" = betterproto.enum_field(5, enum_default_value=lambda: Syntax.try_value(0))
581
+ syntax: "Syntax" = betterproto2.enum_field(5, enum_default_value=lambda: Syntax.try_value(0))
582
582
  """The source syntax."""
583
583
 
584
584
 
585
585
  @dataclass(eq=False, repr=False)
586
- class EnumValue(betterproto.Message):
586
+ class EnumValue(betterproto2.Message):
587
587
  """Enum value definition."""
588
588
 
589
- name: str = betterproto.string_field(1)
589
+ name: str = betterproto2.string_field(1)
590
590
  """Enum value name."""
591
591
 
592
- number: int = betterproto.int32_field(2)
592
+ number: int = betterproto2.int32_field(2)
593
593
  """Enum value number."""
594
594
 
595
- options: List["Option"] = betterproto.message_field(3, repeated=True)
595
+ options: List["Option"] = betterproto2.message_field(3, repeated=True)
596
596
  """Protocol buffer options."""
597
597
 
598
598
 
599
599
  @dataclass(eq=False, repr=False)
600
- class Option(betterproto.Message):
600
+ class Option(betterproto2.Message):
601
601
  """
602
602
  A protocol buffer option, which can be attached to a message, field,
603
603
  enumeration, etc.
604
604
  """
605
605
 
606
- name: str = betterproto.string_field(1)
606
+ name: str = betterproto2.string_field(1)
607
607
  """
608
608
  The option's name. For protobuf built-in options (options defined in
609
609
  descriptor.proto), this is the short name. For example, `"map_entry"`.
@@ -611,7 +611,7 @@ class Option(betterproto.Message):
611
611
  `"google.api.http"`.
612
612
  """
613
613
 
614
- value: "Any" = betterproto.message_field(2)
614
+ value: "Any" = betterproto2.message_field(2)
615
615
  """
616
616
  The option's value packed in an Any message. If the value is a primitive,
617
617
  the corresponding wrapper type defined in google/protobuf/wrappers.proto
@@ -621,7 +621,7 @@ class Option(betterproto.Message):
621
621
 
622
622
 
623
623
  @dataclass(eq=False, repr=False)
624
- class Api(betterproto.Message):
624
+ class Api(betterproto2.Message):
625
625
  """
626
626
  Api is a light-weight descriptor for an API Interface.
627
627
 
@@ -634,19 +634,19 @@ class Api(betterproto.Message):
634
634
  detailed terminology.
635
635
  """
636
636
 
637
- name: str = betterproto.string_field(1)
637
+ name: str = betterproto2.string_field(1)
638
638
  """
639
639
  The fully qualified name of this interface, including package name
640
640
  followed by the interface's simple name.
641
641
  """
642
642
 
643
- methods: List["Method"] = betterproto.message_field(2, repeated=True)
643
+ methods: List["Method"] = betterproto2.message_field(2, repeated=True)
644
644
  """The methods of this interface, in unspecified order."""
645
645
 
646
- options: List["Option"] = betterproto.message_field(3, repeated=True)
646
+ options: List["Option"] = betterproto2.message_field(3, repeated=True)
647
647
  """Any metadata attached to the interface."""
648
648
 
649
- version: str = betterproto.string_field(4)
649
+ version: str = betterproto2.string_field(4)
650
650
  """
651
651
  A version string for this interface. If specified, must have the form
652
652
  `major-version.minor-version`, as in `1.10`. If the minor version is
@@ -669,47 +669,47 @@ class Api(betterproto.Message):
669
669
  experimental, non-GA interfaces.
670
670
  """
671
671
 
672
- source_context: "SourceContext" = betterproto.message_field(5)
672
+ source_context: "SourceContext" = betterproto2.message_field(5)
673
673
  """
674
674
  Source context for the protocol buffer service represented by this
675
675
  message.
676
676
  """
677
677
 
678
- mixins: List["Mixin"] = betterproto.message_field(6, repeated=True)
678
+ mixins: List["Mixin"] = betterproto2.message_field(6, repeated=True)
679
679
  """Included interfaces. See [Mixin][]."""
680
680
 
681
- syntax: "Syntax" = betterproto.enum_field(7, enum_default_value=lambda: Syntax.try_value(0))
681
+ syntax: "Syntax" = betterproto2.enum_field(7, enum_default_value=lambda: Syntax.try_value(0))
682
682
  """The source syntax of the service."""
683
683
 
684
684
 
685
685
  @dataclass(eq=False, repr=False)
686
- class Method(betterproto.Message):
686
+ class Method(betterproto2.Message):
687
687
  """Method represents a method of an API interface."""
688
688
 
689
- name: str = betterproto.string_field(1)
689
+ name: str = betterproto2.string_field(1)
690
690
  """The simple name of this method."""
691
691
 
692
- request_type_url: str = betterproto.string_field(2)
692
+ request_type_url: str = betterproto2.string_field(2)
693
693
  """A URL of the input message type."""
694
694
 
695
- request_streaming: bool = betterproto.bool_field(3)
695
+ request_streaming: bool = betterproto2.bool_field(3)
696
696
  """If true, the request is streamed."""
697
697
 
698
- response_type_url: str = betterproto.string_field(4)
698
+ response_type_url: str = betterproto2.string_field(4)
699
699
  """The URL of the output message type."""
700
700
 
701
- response_streaming: bool = betterproto.bool_field(5)
701
+ response_streaming: bool = betterproto2.bool_field(5)
702
702
  """If true, the response is streamed."""
703
703
 
704
- options: List["Option"] = betterproto.message_field(6, repeated=True)
704
+ options: List["Option"] = betterproto2.message_field(6, repeated=True)
705
705
  """Any metadata attached to the method."""
706
706
 
707
- syntax: "Syntax" = betterproto.enum_field(7, enum_default_value=lambda: Syntax.try_value(0))
707
+ syntax: "Syntax" = betterproto2.enum_field(7, enum_default_value=lambda: Syntax.try_value(0))
708
708
  """The source syntax of this method."""
709
709
 
710
710
 
711
711
  @dataclass(eq=False, repr=False)
712
- class Mixin(betterproto.Message):
712
+ class Mixin(betterproto2.Message):
713
713
  """
714
714
  Declares an API Interface to be included in this interface. The including
715
715
  interface must redeclare all the methods from the included interface, but
@@ -791,10 +791,10 @@ class Mixin(betterproto.Message):
791
791
  }
792
792
  """
793
793
 
794
- name: str = betterproto.string_field(1)
794
+ name: str = betterproto2.string_field(1)
795
795
  """The fully qualified name of the interface which is included."""
796
796
 
797
- root: str = betterproto.string_field(2)
797
+ root: str = betterproto2.string_field(2)
798
798
  """
799
799
  If non-empty specifies a path under which inherited HTTP paths
800
800
  are rooted.
@@ -802,64 +802,64 @@ class Mixin(betterproto.Message):
802
802
 
803
803
 
804
804
  @dataclass(eq=False, repr=False)
805
- class FileDescriptorSet(betterproto.Message):
805
+ class FileDescriptorSet(betterproto2.Message):
806
806
  """
807
807
  The protocol compiler can output a FileDescriptorSet containing the .proto
808
808
  files it parses.
809
809
  """
810
810
 
811
- file: List["FileDescriptorProto"] = betterproto.message_field(1, repeated=True)
811
+ file: List["FileDescriptorProto"] = betterproto2.message_field(1, repeated=True)
812
812
  """
813
813
 
814
814
  """
815
815
 
816
816
 
817
817
  @dataclass(eq=False, repr=False)
818
- class FileDescriptorProto(betterproto.Message):
818
+ class FileDescriptorProto(betterproto2.Message):
819
819
  """Describes a complete .proto file."""
820
820
 
821
- name: str = betterproto.string_field(1)
821
+ name: str = betterproto2.string_field(1)
822
822
  """file name, relative to root of source tree"""
823
823
 
824
- package: str = betterproto.string_field(2)
824
+ package: str = betterproto2.string_field(2)
825
825
  """e.g. "foo", "foo.bar", etc."""
826
826
 
827
- dependency: List[str] = betterproto.string_field(3, repeated=True)
827
+ dependency: List[str] = betterproto2.string_field(3, repeated=True)
828
828
  """Names of files imported by this file."""
829
829
 
830
- public_dependency: List[int] = betterproto.int32_field(10, repeated=True)
830
+ public_dependency: List[int] = betterproto2.int32_field(10, repeated=True)
831
831
  """Indexes of the public imported files in the dependency list above."""
832
832
 
833
- weak_dependency: List[int] = betterproto.int32_field(11, repeated=True)
833
+ weak_dependency: List[int] = betterproto2.int32_field(11, repeated=True)
834
834
  """
835
835
  Indexes of the weak imported files in the dependency list.
836
836
  For Google-internal migration only. Do not use.
837
837
  """
838
838
 
839
- message_type: List["DescriptorProto"] = betterproto.message_field(4, repeated=True)
839
+ message_type: List["DescriptorProto"] = betterproto2.message_field(4, repeated=True)
840
840
  """All top-level definitions in this file."""
841
841
 
842
- enum_type: List["EnumDescriptorProto"] = betterproto.message_field(5, repeated=True)
842
+ enum_type: List["EnumDescriptorProto"] = betterproto2.message_field(5, repeated=True)
843
843
  """
844
844
 
845
845
  """
846
846
 
847
- service: List["ServiceDescriptorProto"] = betterproto.message_field(6, repeated=True)
847
+ service: List["ServiceDescriptorProto"] = betterproto2.message_field(6, repeated=True)
848
848
  """
849
849
 
850
850
  """
851
851
 
852
- extension: List["FieldDescriptorProto"] = betterproto.message_field(7, repeated=True)
852
+ extension: List["FieldDescriptorProto"] = betterproto2.message_field(7, repeated=True)
853
853
  """
854
854
 
855
855
  """
856
856
 
857
- options: "FileOptions" = betterproto.message_field(8)
857
+ options: "FileOptions" = betterproto2.message_field(8)
858
858
  """
859
859
 
860
860
  """
861
861
 
862
- source_code_info: "SourceCodeInfo" = betterproto.message_field(9)
862
+ source_code_info: "SourceCodeInfo" = betterproto2.message_field(9)
863
863
  """
864
864
  This field contains optional information about the original source code.
865
865
  You may safely remove this entire field without harming runtime
@@ -867,7 +867,7 @@ class FileDescriptorProto(betterproto.Message):
867
867
  development tools.
868
868
  """
869
869
 
870
- syntax: str = betterproto.string_field(12)
870
+ syntax: str = betterproto2.string_field(12)
871
871
  """
872
872
  The syntax of the proto file.
873
873
  The supported values are "proto2" and "proto3".
@@ -875,55 +875,55 @@ class FileDescriptorProto(betterproto.Message):
875
875
 
876
876
 
877
877
  @dataclass(eq=False, repr=False)
878
- class DescriptorProto(betterproto.Message):
878
+ class DescriptorProto(betterproto2.Message):
879
879
  """Describes a message type."""
880
880
 
881
- name: str = betterproto.string_field(1)
881
+ name: str = betterproto2.string_field(1)
882
882
  """
883
883
 
884
884
  """
885
885
 
886
- field: List["FieldDescriptorProto"] = betterproto.message_field(2, repeated=True)
886
+ field: List["FieldDescriptorProto"] = betterproto2.message_field(2, repeated=True)
887
887
  """
888
888
 
889
889
  """
890
890
 
891
- extension: List["FieldDescriptorProto"] = betterproto.message_field(6, repeated=True)
891
+ extension: List["FieldDescriptorProto"] = betterproto2.message_field(6, repeated=True)
892
892
  """
893
893
 
894
894
  """
895
895
 
896
- nested_type: List["DescriptorProto"] = betterproto.message_field(3, repeated=True)
896
+ nested_type: List["DescriptorProto"] = betterproto2.message_field(3, repeated=True)
897
897
  """
898
898
 
899
899
  """
900
900
 
901
- enum_type: List["EnumDescriptorProto"] = betterproto.message_field(4, repeated=True)
901
+ enum_type: List["EnumDescriptorProto"] = betterproto2.message_field(4, repeated=True)
902
902
  """
903
903
 
904
904
  """
905
905
 
906
- extension_range: List["DescriptorProtoExtensionRange"] = betterproto.message_field(5, repeated=True)
906
+ extension_range: List["DescriptorProtoExtensionRange"] = betterproto2.message_field(5, repeated=True)
907
907
  """
908
908
 
909
909
  """
910
910
 
911
- oneof_decl: List["OneofDescriptorProto"] = betterproto.message_field(8, repeated=True)
911
+ oneof_decl: List["OneofDescriptorProto"] = betterproto2.message_field(8, repeated=True)
912
912
  """
913
913
 
914
914
  """
915
915
 
916
- options: "MessageOptions" = betterproto.message_field(7)
916
+ options: "MessageOptions" = betterproto2.message_field(7)
917
917
  """
918
918
 
919
919
  """
920
920
 
921
- reserved_range: List["DescriptorProtoReservedRange"] = betterproto.message_field(9, repeated=True)
921
+ reserved_range: List["DescriptorProtoReservedRange"] = betterproto2.message_field(9, repeated=True)
922
922
  """
923
923
 
924
924
  """
925
925
 
926
- reserved_name: List[str] = betterproto.string_field(10, repeated=True)
926
+ reserved_name: List[str] = betterproto2.string_field(10, repeated=True)
927
927
  """
928
928
  Reserved field names, which may not be used by fields in the same message.
929
929
  A given name may only be reserved once.
@@ -931,66 +931,66 @@ class DescriptorProto(betterproto.Message):
931
931
 
932
932
 
933
933
  @dataclass(eq=False, repr=False)
934
- class DescriptorProtoExtensionRange(betterproto.Message):
934
+ class DescriptorProtoExtensionRange(betterproto2.Message):
935
935
  """ """
936
936
 
937
- start: int = betterproto.int32_field(1)
937
+ start: int = betterproto2.int32_field(1)
938
938
  """Inclusive."""
939
939
 
940
- end: int = betterproto.int32_field(2)
940
+ end: int = betterproto2.int32_field(2)
941
941
  """Exclusive."""
942
942
 
943
- options: "ExtensionRangeOptions" = betterproto.message_field(3)
943
+ options: "ExtensionRangeOptions" = betterproto2.message_field(3)
944
944
  """
945
945
 
946
946
  """
947
947
 
948
948
 
949
949
  @dataclass(eq=False, repr=False)
950
- class DescriptorProtoReservedRange(betterproto.Message):
950
+ class DescriptorProtoReservedRange(betterproto2.Message):
951
951
  """
952
952
  Range of reserved tag numbers. Reserved tag numbers may not be used by
953
953
  fields or extension ranges in the same message. Reserved ranges may
954
954
  not overlap.
955
955
  """
956
956
 
957
- start: int = betterproto.int32_field(1)
957
+ start: int = betterproto2.int32_field(1)
958
958
  """Inclusive."""
959
959
 
960
- end: int = betterproto.int32_field(2)
960
+ end: int = betterproto2.int32_field(2)
961
961
  """Exclusive."""
962
962
 
963
963
 
964
964
  @dataclass(eq=False, repr=False)
965
- class ExtensionRangeOptions(betterproto.Message):
965
+ class ExtensionRangeOptions(betterproto2.Message):
966
966
  """ """
967
967
 
968
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
968
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
969
969
  """The parser stores options it doesn't recognize here. See above."""
970
970
 
971
971
 
972
972
  @dataclass(eq=False, repr=False)
973
- class FieldDescriptorProto(betterproto.Message):
973
+ class FieldDescriptorProto(betterproto2.Message):
974
974
  """Describes a field within a message."""
975
975
 
976
- name: str = betterproto.string_field(1)
976
+ name: str = betterproto2.string_field(1)
977
977
  """
978
978
 
979
979
  """
980
980
 
981
- number: int = betterproto.int32_field(3)
981
+ number: int = betterproto2.int32_field(3)
982
982
  """
983
983
 
984
984
  """
985
985
 
986
- label: "FieldDescriptorProtoLabel" = betterproto.enum_field(
986
+ label: "FieldDescriptorProtoLabel" = betterproto2.enum_field(
987
987
  4, enum_default_value=lambda: FieldDescriptorProtoLabel.try_value(0)
988
988
  )
989
989
  """
990
990
 
991
991
  """
992
992
 
993
- type: "FieldDescriptorProtoType" = betterproto.enum_field(
993
+ type: "FieldDescriptorProtoType" = betterproto2.enum_field(
994
994
  5, enum_default_value=lambda: FieldDescriptorProtoType.try_value(0)
995
995
  )
996
996
  """
@@ -998,7 +998,7 @@ class FieldDescriptorProto(betterproto.Message):
998
998
  are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
999
999
  """
1000
1000
 
1001
- type_name: str = betterproto.string_field(6)
1001
+ type_name: str = betterproto2.string_field(6)
1002
1002
  """
1003
1003
  For message and enum types, this is the name of the type. If the name
1004
1004
  starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
@@ -1007,13 +1007,13 @@ class FieldDescriptorProto(betterproto.Message):
1007
1007
  namespace).
1008
1008
  """
1009
1009
 
1010
- extendee: str = betterproto.string_field(2)
1010
+ extendee: str = betterproto2.string_field(2)
1011
1011
  """
1012
1012
  For extensions, this is the name of the type being extended. It is
1013
1013
  resolved in the same manner as type_name.
1014
1014
  """
1015
1015
 
1016
- default_value: str = betterproto.string_field(7)
1016
+ default_value: str = betterproto2.string_field(7)
1017
1017
  """
1018
1018
  For numeric types, contains the original text representation of the value.
1019
1019
  For booleans, "true" or "false".
@@ -1022,13 +1022,13 @@ class FieldDescriptorProto(betterproto.Message):
1022
1022
  TODO(kenton): Base-64 encode?
1023
1023
  """
1024
1024
 
1025
- oneof_index: Optional[int] = betterproto.int32_field(9, optional=True)
1025
+ oneof_index: Optional[int] = betterproto2.int32_field(9, optional=True)
1026
1026
  """
1027
1027
  If set, gives the index of a oneof in the containing type's oneof_decl
1028
1028
  list. This field is a member of that oneof.
1029
1029
  """
1030
1030
 
1031
- json_name: str = betterproto.string_field(10)
1031
+ json_name: str = betterproto2.string_field(10)
1032
1032
  """
1033
1033
  JSON name of this field. The value is set by protocol compiler. If the
1034
1034
  user has set a "json_name" option on this field, that option's value
@@ -1036,12 +1036,12 @@ class FieldDescriptorProto(betterproto.Message):
1036
1036
  it to camelCase.
1037
1037
  """
1038
1038
 
1039
- options: "FieldOptions" = betterproto.message_field(8)
1039
+ options: "FieldOptions" = betterproto2.message_field(8)
1040
1040
  """
1041
1041
 
1042
1042
  """
1043
1043
 
1044
- proto3_optional: bool = betterproto.bool_field(17)
1044
+ proto3_optional: bool = betterproto2.bool_field(17)
1045
1045
  """
1046
1046
  If true, this is a proto3 "optional". When a proto3 field is optional, it
1047
1047
  tracks presence regardless of field type.
@@ -1068,47 +1068,47 @@ class FieldDescriptorProto(betterproto.Message):
1068
1068
 
1069
1069
 
1070
1070
  @dataclass(eq=False, repr=False)
1071
- class OneofDescriptorProto(betterproto.Message):
1071
+ class OneofDescriptorProto(betterproto2.Message):
1072
1072
  """Describes a oneof."""
1073
1073
 
1074
- name: str = betterproto.string_field(1)
1074
+ name: str = betterproto2.string_field(1)
1075
1075
  """
1076
1076
 
1077
1077
  """
1078
1078
 
1079
- options: "OneofOptions" = betterproto.message_field(2)
1079
+ options: "OneofOptions" = betterproto2.message_field(2)
1080
1080
  """
1081
1081
 
1082
1082
  """
1083
1083
 
1084
1084
 
1085
1085
  @dataclass(eq=False, repr=False)
1086
- class EnumDescriptorProto(betterproto.Message):
1086
+ class EnumDescriptorProto(betterproto2.Message):
1087
1087
  """Describes an enum type."""
1088
1088
 
1089
- name: str = betterproto.string_field(1)
1089
+ name: str = betterproto2.string_field(1)
1090
1090
  """
1091
1091
 
1092
1092
  """
1093
1093
 
1094
- value: List["EnumValueDescriptorProto"] = betterproto.message_field(2, repeated=True)
1094
+ value: List["EnumValueDescriptorProto"] = betterproto2.message_field(2, repeated=True)
1095
1095
  """
1096
1096
 
1097
1097
  """
1098
1098
 
1099
- options: "EnumOptions" = betterproto.message_field(3)
1099
+ options: "EnumOptions" = betterproto2.message_field(3)
1100
1100
  """
1101
1101
 
1102
1102
  """
1103
1103
 
1104
- reserved_range: List["EnumDescriptorProtoEnumReservedRange"] = betterproto.message_field(4, repeated=True)
1104
+ reserved_range: List["EnumDescriptorProtoEnumReservedRange"] = betterproto2.message_field(4, repeated=True)
1105
1105
  """
1106
1106
  Range of reserved numeric values. Reserved numeric values may not be used
1107
1107
  by enum values in the same enum declaration. Reserved ranges may not
1108
1108
  overlap.
1109
1109
  """
1110
1110
 
1111
- reserved_name: List[str] = betterproto.string_field(5, repeated=True)
1111
+ reserved_name: List[str] = betterproto2.string_field(5, repeated=True)
1112
1112
  """
1113
1113
  Reserved enum value names, which may not be reused. A given name may only
1114
1114
  be reserved once.
@@ -1116,7 +1116,7 @@ class EnumDescriptorProto(betterproto.Message):
1116
1116
 
1117
1117
 
1118
1118
  @dataclass(eq=False, repr=False)
1119
- class EnumDescriptorProtoEnumReservedRange(betterproto.Message):
1119
+ class EnumDescriptorProtoEnumReservedRange(betterproto2.Message):
1120
1120
  """
1121
1121
  Range of reserved numeric values. Reserved values may not be used by
1122
1122
  entries in the same enum. Reserved ranges may not overlap.
@@ -1126,87 +1126,87 @@ class EnumDescriptorProtoEnumReservedRange(betterproto.Message):
1126
1126
  domain.
1127
1127
  """
1128
1128
 
1129
- start: int = betterproto.int32_field(1)
1129
+ start: int = betterproto2.int32_field(1)
1130
1130
  """Inclusive."""
1131
1131
 
1132
- end: int = betterproto.int32_field(2)
1132
+ end: int = betterproto2.int32_field(2)
1133
1133
  """Inclusive."""
1134
1134
 
1135
1135
 
1136
1136
  @dataclass(eq=False, repr=False)
1137
- class EnumValueDescriptorProto(betterproto.Message):
1137
+ class EnumValueDescriptorProto(betterproto2.Message):
1138
1138
  """Describes a value within an enum."""
1139
1139
 
1140
- name: str = betterproto.string_field(1)
1140
+ name: str = betterproto2.string_field(1)
1141
1141
  """
1142
1142
 
1143
1143
  """
1144
1144
 
1145
- number: int = betterproto.int32_field(2)
1145
+ number: int = betterproto2.int32_field(2)
1146
1146
  """
1147
1147
 
1148
1148
  """
1149
1149
 
1150
- options: "EnumValueOptions" = betterproto.message_field(3)
1150
+ options: "EnumValueOptions" = betterproto2.message_field(3)
1151
1151
  """
1152
1152
 
1153
1153
  """
1154
1154
 
1155
1155
 
1156
1156
  @dataclass(eq=False, repr=False)
1157
- class ServiceDescriptorProto(betterproto.Message):
1157
+ class ServiceDescriptorProto(betterproto2.Message):
1158
1158
  """Describes a service."""
1159
1159
 
1160
- name: str = betterproto.string_field(1)
1160
+ name: str = betterproto2.string_field(1)
1161
1161
  """
1162
1162
 
1163
1163
  """
1164
1164
 
1165
- method: List["MethodDescriptorProto"] = betterproto.message_field(2, repeated=True)
1165
+ method: List["MethodDescriptorProto"] = betterproto2.message_field(2, repeated=True)
1166
1166
  """
1167
1167
 
1168
1168
  """
1169
1169
 
1170
- options: "ServiceOptions" = betterproto.message_field(3)
1170
+ options: "ServiceOptions" = betterproto2.message_field(3)
1171
1171
  """
1172
1172
 
1173
1173
  """
1174
1174
 
1175
1175
 
1176
1176
  @dataclass(eq=False, repr=False)
1177
- class MethodDescriptorProto(betterproto.Message):
1177
+ class MethodDescriptorProto(betterproto2.Message):
1178
1178
  """Describes a method of a service."""
1179
1179
 
1180
- name: str = betterproto.string_field(1)
1180
+ name: str = betterproto2.string_field(1)
1181
1181
  """
1182
1182
 
1183
1183
  """
1184
1184
 
1185
- input_type: str = betterproto.string_field(2)
1185
+ input_type: str = betterproto2.string_field(2)
1186
1186
  """
1187
1187
  Input and output type names. These are resolved in the same way as
1188
1188
  FieldDescriptorProto.type_name, but must refer to a message type.
1189
1189
  """
1190
1190
 
1191
- output_type: str = betterproto.string_field(3)
1191
+ output_type: str = betterproto2.string_field(3)
1192
1192
  """
1193
1193
 
1194
1194
  """
1195
1195
 
1196
- options: "MethodOptions" = betterproto.message_field(4)
1196
+ options: "MethodOptions" = betterproto2.message_field(4)
1197
1197
  """
1198
1198
 
1199
1199
  """
1200
1200
 
1201
- client_streaming: bool = betterproto.bool_field(5)
1201
+ client_streaming: bool = betterproto2.bool_field(5)
1202
1202
  """Identifies if client streams multiple client messages"""
1203
1203
 
1204
- server_streaming: bool = betterproto.bool_field(6)
1204
+ server_streaming: bool = betterproto2.bool_field(6)
1205
1205
  """Identifies if server streams multiple server messages"""
1206
1206
 
1207
1207
 
1208
1208
  @dataclass(eq=False, repr=False)
1209
- class FileOptions(betterproto.Message):
1209
+ class FileOptions(betterproto2.Message):
1210
1210
  """
1211
1211
  ===================================================================
1212
1212
  Options
@@ -1241,7 +1241,7 @@ class FileOptions(betterproto.Message):
1241
1241
  to automatically assign option numbers.
1242
1242
  """
1243
1243
 
1244
- java_package: str = betterproto.string_field(1)
1244
+ java_package: str = betterproto2.string_field(1)
1245
1245
  """
1246
1246
  Sets the Java package where classes generated from this .proto will be
1247
1247
  placed. By default, the proto package is used, but this is often
@@ -1249,7 +1249,7 @@ class FileOptions(betterproto.Message):
1249
1249
  domain names.
1250
1250
  """
1251
1251
 
1252
- java_outer_classname: str = betterproto.string_field(8)
1252
+ java_outer_classname: str = betterproto2.string_field(8)
1253
1253
  """
1254
1254
  If set, all the classes from the .proto file are wrapped in a single
1255
1255
  outer class with the given name. This applies to both Proto1
@@ -1258,7 +1258,7 @@ class FileOptions(betterproto.Message):
1258
1258
  explicitly choose the class name).
1259
1259
  """
1260
1260
 
1261
- java_multiple_files: bool = betterproto.bool_field(10)
1261
+ java_multiple_files: bool = betterproto2.bool_field(10)
1262
1262
  """
1263
1263
  If set true, then the Java code generator will generate a separate .java
1264
1264
  file for each top-level message, enum, and service defined in the .proto
@@ -1268,10 +1268,10 @@ class FileOptions(betterproto.Message):
1268
1268
  top-level extensions defined in the file.
1269
1269
  """
1270
1270
 
1271
- java_generate_equals_and_hash: bool = betterproto.bool_field(20)
1271
+ java_generate_equals_and_hash: bool = betterproto2.bool_field(20)
1272
1272
  """This option does nothing."""
1273
1273
 
1274
- java_string_check_utf8: bool = betterproto.bool_field(27)
1274
+ java_string_check_utf8: bool = betterproto2.bool_field(27)
1275
1275
  """
1276
1276
  If set true, then the Java2 code generator will generate code that
1277
1277
  throws an exception whenever an attempt is made to assign a non-UTF-8
@@ -1281,14 +1281,14 @@ class FileOptions(betterproto.Message):
1281
1281
  This option has no effect on when used with the lite runtime.
1282
1282
  """
1283
1283
 
1284
- optimize_for: "FileOptionsOptimizeMode" = betterproto.enum_field(
1284
+ optimize_for: "FileOptionsOptimizeMode" = betterproto2.enum_field(
1285
1285
  9, enum_default_value=lambda: FileOptionsOptimizeMode.try_value(0)
1286
1286
  )
1287
1287
  """
1288
1288
 
1289
1289
  """
1290
1290
 
1291
- go_package: str = betterproto.string_field(11)
1291
+ go_package: str = betterproto2.string_field(11)
1292
1292
  """
1293
1293
  Sets the Go package where structs generated from this .proto will be
1294
1294
  placed. If omitted, the Go package will be derived from the following:
@@ -1297,7 +1297,7 @@ class FileOptions(betterproto.Message):
1297
1297
  - Otherwise, the basename of the .proto file, without extension.
1298
1298
  """
1299
1299
 
1300
- cc_generic_services: bool = betterproto.bool_field(16)
1300
+ cc_generic_services: bool = betterproto2.bool_field(16)
1301
1301
  """
1302
1302
  Should generic services be generated in each language? "Generic" services
1303
1303
  are not specific to any particular RPC system. They are generated by the
@@ -1311,22 +1311,22 @@ class FileOptions(betterproto.Message):
1311
1311
  explicitly set them to true.
1312
1312
  """
1313
1313
 
1314
- java_generic_services: bool = betterproto.bool_field(17)
1314
+ java_generic_services: bool = betterproto2.bool_field(17)
1315
1315
  """
1316
1316
 
1317
1317
  """
1318
1318
 
1319
- py_generic_services: bool = betterproto.bool_field(18)
1319
+ py_generic_services: bool = betterproto2.bool_field(18)
1320
1320
  """
1321
1321
 
1322
1322
  """
1323
1323
 
1324
- php_generic_services: bool = betterproto.bool_field(42)
1324
+ php_generic_services: bool = betterproto2.bool_field(42)
1325
1325
  """
1326
1326
 
1327
1327
  """
1328
1328
 
1329
- deprecated: bool = betterproto.bool_field(23)
1329
+ deprecated: bool = betterproto2.bool_field(23)
1330
1330
  """
1331
1331
  Is this file deprecated?
1332
1332
  Depending on the target platform, this can emit Deprecated annotations
@@ -1334,22 +1334,22 @@ class FileOptions(betterproto.Message):
1334
1334
  least, this is a formalization for deprecating files.
1335
1335
  """
1336
1336
 
1337
- cc_enable_arenas: bool = betterproto.bool_field(31)
1337
+ cc_enable_arenas: bool = betterproto2.bool_field(31)
1338
1338
  """
1339
1339
  Enables the use of arenas for the proto messages in this file. This applies
1340
1340
  only to generated classes for C++.
1341
1341
  """
1342
1342
 
1343
- objc_class_prefix: str = betterproto.string_field(36)
1343
+ objc_class_prefix: str = betterproto2.string_field(36)
1344
1344
  """
1345
1345
  Sets the objective c class prefix which is prepended to all objective c
1346
1346
  generated classes from this .proto. There is no default.
1347
1347
  """
1348
1348
 
1349
- csharp_namespace: str = betterproto.string_field(37)
1349
+ csharp_namespace: str = betterproto2.string_field(37)
1350
1350
  """Namespace for generated classes; defaults to the package."""
1351
1351
 
1352
- swift_prefix: str = betterproto.string_field(39)
1352
+ swift_prefix: str = betterproto2.string_field(39)
1353
1353
  """
1354
1354
  By default Swift generators will take the proto package and CamelCase it
1355
1355
  replacing '.' with underscore and use that to prefix the types/symbols
@@ -1357,34 +1357,34 @@ class FileOptions(betterproto.Message):
1357
1357
  to prefix the types/symbols defined.
1358
1358
  """
1359
1359
 
1360
- php_class_prefix: str = betterproto.string_field(40)
1360
+ php_class_prefix: str = betterproto2.string_field(40)
1361
1361
  """
1362
1362
  Sets the php class prefix which is prepended to all php generated classes
1363
1363
  from this .proto. Default is empty.
1364
1364
  """
1365
1365
 
1366
- php_namespace: str = betterproto.string_field(41)
1366
+ php_namespace: str = betterproto2.string_field(41)
1367
1367
  """
1368
1368
  Use this option to change the namespace of php generated classes. Default
1369
1369
  is empty. When this option is empty, the package name will be used for
1370
1370
  determining the namespace.
1371
1371
  """
1372
1372
 
1373
- php_metadata_namespace: str = betterproto.string_field(44)
1373
+ php_metadata_namespace: str = betterproto2.string_field(44)
1374
1374
  """
1375
1375
  Use this option to change the namespace of php generated metadata classes.
1376
1376
  Default is empty. When this option is empty, the proto file name will be
1377
1377
  used for determining the namespace.
1378
1378
  """
1379
1379
 
1380
- ruby_package: str = betterproto.string_field(45)
1380
+ ruby_package: str = betterproto2.string_field(45)
1381
1381
  """
1382
1382
  Use this option to change the package of ruby generated classes. Default
1383
1383
  is empty. When this option is not set, the package name will be used for
1384
1384
  determining the ruby package.
1385
1385
  """
1386
1386
 
1387
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1387
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1388
1388
  """
1389
1389
  The parser stores options it doesn't recognize here.
1390
1390
  See the documentation for the "Options" section above.
@@ -1400,10 +1400,10 @@ class FileOptions(betterproto.Message):
1400
1400
 
1401
1401
 
1402
1402
  @dataclass(eq=False, repr=False)
1403
- class MessageOptions(betterproto.Message):
1403
+ class MessageOptions(betterproto2.Message):
1404
1404
  """ """
1405
1405
 
1406
- message_set_wire_format: bool = betterproto.bool_field(1)
1406
+ message_set_wire_format: bool = betterproto2.bool_field(1)
1407
1407
  """
1408
1408
  Set true to use the old proto1 MessageSet wire format for extensions.
1409
1409
  This is provided for backwards-compatibility with the MessageSet wire
@@ -1425,14 +1425,14 @@ class MessageOptions(betterproto.Message):
1425
1425
  the protocol compiler.
1426
1426
  """
1427
1427
 
1428
- no_standard_descriptor_accessor: bool = betterproto.bool_field(2)
1428
+ no_standard_descriptor_accessor: bool = betterproto2.bool_field(2)
1429
1429
  """
1430
1430
  Disables the generation of the standard "descriptor()" accessor, which can
1431
1431
  conflict with a field of the same name. This is meant to make migration
1432
1432
  from proto1 easier; new code should avoid fields named "descriptor".
1433
1433
  """
1434
1434
 
1435
- deprecated: bool = betterproto.bool_field(3)
1435
+ deprecated: bool = betterproto2.bool_field(3)
1436
1436
  """
1437
1437
  Is this message deprecated?
1438
1438
  Depending on the target platform, this can emit Deprecated annotations
@@ -1440,7 +1440,7 @@ class MessageOptions(betterproto.Message):
1440
1440
  this is a formalization for deprecating messages.
1441
1441
  """
1442
1442
 
1443
- map_entry: bool = betterproto.bool_field(7)
1443
+ map_entry: bool = betterproto2.bool_field(7)
1444
1444
  """
1445
1445
  Whether the message is an automatically generated map entry type for the
1446
1446
  maps field.
@@ -1465,15 +1465,15 @@ class MessageOptions(betterproto.Message):
1465
1465
  parser.
1466
1466
  """
1467
1467
 
1468
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1468
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1469
1469
  """The parser stores options it doesn't recognize here. See above."""
1470
1470
 
1471
1471
 
1472
1472
  @dataclass(eq=False, repr=False)
1473
- class FieldOptions(betterproto.Message):
1473
+ class FieldOptions(betterproto2.Message):
1474
1474
  """ """
1475
1475
 
1476
- ctype: "FieldOptionsCType" = betterproto.enum_field(1, enum_default_value=lambda: FieldOptionsCType.try_value(0))
1476
+ ctype: "FieldOptionsCType" = betterproto2.enum_field(1, enum_default_value=lambda: FieldOptionsCType.try_value(0))
1477
1477
  """
1478
1478
  The ctype option instructs the C++ code generator to use a different
1479
1479
  representation of the field than it normally would. See the specific
@@ -1481,7 +1481,7 @@ class FieldOptions(betterproto.Message):
1481
1481
  release -- sorry, we'll try to include it in a future version!
1482
1482
  """
1483
1483
 
1484
- packed: bool = betterproto.bool_field(2)
1484
+ packed: bool = betterproto2.bool_field(2)
1485
1485
  """
1486
1486
  The packed option can be enabled for repeated primitive fields to enable
1487
1487
  a more efficient representation on the wire. Rather than repeatedly
@@ -1490,7 +1490,9 @@ class FieldOptions(betterproto.Message):
1490
1490
  false will avoid using packed encoding.
1491
1491
  """
1492
1492
 
1493
- jstype: "FieldOptionsJsType" = betterproto.enum_field(6, enum_default_value=lambda: FieldOptionsJsType.try_value(0))
1493
+ jstype: "FieldOptionsJsType" = betterproto2.enum_field(
1494
+ 6, enum_default_value=lambda: FieldOptionsJsType.try_value(0)
1495
+ )
1494
1496
  """
1495
1497
  The jstype option determines the JavaScript type used for values of the
1496
1498
  field. The option is permitted only for 64 bit integral and fixed types
@@ -1505,7 +1507,7 @@ class FieldOptions(betterproto.Message):
1505
1507
  goog.math.Integer.
1506
1508
  """
1507
1509
 
1508
- lazy: bool = betterproto.bool_field(5)
1510
+ lazy: bool = betterproto2.bool_field(5)
1509
1511
  """
1510
1512
  Should this field be parsed lazily? Lazy applies only to message-type
1511
1513
  fields. It means that when the outer message is initially parsed, the
@@ -1536,7 +1538,7 @@ class FieldOptions(betterproto.Message):
1536
1538
  been parsed.
1537
1539
  """
1538
1540
 
1539
- deprecated: bool = betterproto.bool_field(3)
1541
+ deprecated: bool = betterproto2.bool_field(3)
1540
1542
  """
1541
1543
  Is this field deprecated?
1542
1544
  Depending on the target platform, this can emit Deprecated annotations
@@ -1544,32 +1546,32 @@ class FieldOptions(betterproto.Message):
1544
1546
  is a formalization for deprecating fields.
1545
1547
  """
1546
1548
 
1547
- weak: bool = betterproto.bool_field(10)
1549
+ weak: bool = betterproto2.bool_field(10)
1548
1550
  """For Google-internal migration only. Do not use."""
1549
1551
 
1550
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1552
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1551
1553
  """The parser stores options it doesn't recognize here. See above."""
1552
1554
 
1553
1555
 
1554
1556
  @dataclass(eq=False, repr=False)
1555
- class OneofOptions(betterproto.Message):
1557
+ class OneofOptions(betterproto2.Message):
1556
1558
  """ """
1557
1559
 
1558
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1560
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1559
1561
  """The parser stores options it doesn't recognize here. See above."""
1560
1562
 
1561
1563
 
1562
1564
  @dataclass(eq=False, repr=False)
1563
- class EnumOptions(betterproto.Message):
1565
+ class EnumOptions(betterproto2.Message):
1564
1566
  """ """
1565
1567
 
1566
- allow_alias: bool = betterproto.bool_field(2)
1568
+ allow_alias: bool = betterproto2.bool_field(2)
1567
1569
  """
1568
1570
  Set this option to true to allow mapping different tag names to the same
1569
1571
  value.
1570
1572
  """
1571
1573
 
1572
- deprecated: bool = betterproto.bool_field(3)
1574
+ deprecated: bool = betterproto2.bool_field(3)
1573
1575
  """
1574
1576
  Is this enum deprecated?
1575
1577
  Depending on the target platform, this can emit Deprecated annotations
@@ -1577,15 +1579,15 @@ class EnumOptions(betterproto.Message):
1577
1579
  is a formalization for deprecating enums.
1578
1580
  """
1579
1581
 
1580
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1582
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1581
1583
  """The parser stores options it doesn't recognize here. See above."""
1582
1584
 
1583
1585
 
1584
1586
  @dataclass(eq=False, repr=False)
1585
- class EnumValueOptions(betterproto.Message):
1587
+ class EnumValueOptions(betterproto2.Message):
1586
1588
  """ """
1587
1589
 
1588
- deprecated: bool = betterproto.bool_field(1)
1590
+ deprecated: bool = betterproto2.bool_field(1)
1589
1591
  """
1590
1592
  Is this enum value deprecated?
1591
1593
  Depending on the target platform, this can emit Deprecated annotations
@@ -1593,15 +1595,15 @@ class EnumValueOptions(betterproto.Message):
1593
1595
  this is a formalization for deprecating enum values.
1594
1596
  """
1595
1597
 
1596
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1598
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1597
1599
  """The parser stores options it doesn't recognize here. See above."""
1598
1600
 
1599
1601
 
1600
1602
  @dataclass(eq=False, repr=False)
1601
- class ServiceOptions(betterproto.Message):
1603
+ class ServiceOptions(betterproto2.Message):
1602
1604
  """ """
1603
1605
 
1604
- deprecated: bool = betterproto.bool_field(33)
1606
+ deprecated: bool = betterproto2.bool_field(33)
1605
1607
  """
1606
1608
  Note: Field numbers 1 through 32 are reserved for Google's internal RPC
1607
1609
  framework. We apologize for hoarding these numbers to ourselves, but
@@ -1614,15 +1616,15 @@ class ServiceOptions(betterproto.Message):
1614
1616
  this is a formalization for deprecating services.
1615
1617
  """
1616
1618
 
1617
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1619
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1618
1620
  """The parser stores options it doesn't recognize here. See above."""
1619
1621
 
1620
1622
 
1621
1623
  @dataclass(eq=False, repr=False)
1622
- class MethodOptions(betterproto.Message):
1624
+ class MethodOptions(betterproto2.Message):
1623
1625
  """ """
1624
1626
 
1625
- deprecated: bool = betterproto.bool_field(33)
1627
+ deprecated: bool = betterproto2.bool_field(33)
1626
1628
  """
1627
1629
  Note: Field numbers 1 through 32 are reserved for Google's internal RPC
1628
1630
  framework. We apologize for hoarding these numbers to ourselves, but
@@ -1635,19 +1637,19 @@ class MethodOptions(betterproto.Message):
1635
1637
  this is a formalization for deprecating methods.
1636
1638
  """
1637
1639
 
1638
- idempotency_level: "MethodOptionsIdempotencyLevel" = betterproto.enum_field(
1640
+ idempotency_level: "MethodOptionsIdempotencyLevel" = betterproto2.enum_field(
1639
1641
  34, enum_default_value=lambda: MethodOptionsIdempotencyLevel.try_value(0)
1640
1642
  )
1641
1643
  """
1642
1644
 
1643
1645
  """
1644
1646
 
1645
- uninterpreted_option: List["UninterpretedOption"] = betterproto.message_field(999, repeated=True)
1647
+ uninterpreted_option: List["UninterpretedOption"] = betterproto2.message_field(999, repeated=True)
1646
1648
  """The parser stores options it doesn't recognize here. See above."""
1647
1649
 
1648
1650
 
1649
1651
  @dataclass(eq=False, repr=False)
1650
- class UninterpretedOption(betterproto.Message):
1652
+ class UninterpretedOption(betterproto2.Message):
1651
1653
  """
1652
1654
  A message representing a option the parser does not recognize. This only
1653
1655
  appears in options protos created by the compiler::Parser class.
@@ -1657,45 +1659,45 @@ class UninterpretedOption(betterproto.Message):
1657
1659
  in them.
1658
1660
  """
1659
1661
 
1660
- name: List["UninterpretedOptionNamePart"] = betterproto.message_field(2, repeated=True)
1662
+ name: List["UninterpretedOptionNamePart"] = betterproto2.message_field(2, repeated=True)
1661
1663
  """
1662
1664
 
1663
1665
  """
1664
1666
 
1665
- identifier_value: str = betterproto.string_field(3)
1667
+ identifier_value: str = betterproto2.string_field(3)
1666
1668
  """
1667
1669
  The value of the uninterpreted option, in whatever type the tokenizer
1668
1670
  identified it as during parsing. Exactly one of these should be set.
1669
1671
  """
1670
1672
 
1671
- positive_int_value: int = betterproto.uint64_field(4)
1673
+ positive_int_value: int = betterproto2.uint64_field(4)
1672
1674
  """
1673
1675
 
1674
1676
  """
1675
1677
 
1676
- negative_int_value: int = betterproto.int64_field(5)
1678
+ negative_int_value: int = betterproto2.int64_field(5)
1677
1679
  """
1678
1680
 
1679
1681
  """
1680
1682
 
1681
- double_value: float = betterproto.double_field(6)
1683
+ double_value: float = betterproto2.double_field(6)
1682
1684
  """
1683
1685
 
1684
1686
  """
1685
1687
 
1686
- string_value: bytes = betterproto.bytes_field(7)
1688
+ string_value: bytes = betterproto2.bytes_field(7)
1687
1689
  """
1688
1690
 
1689
1691
  """
1690
1692
 
1691
- aggregate_value: str = betterproto.string_field(8)
1693
+ aggregate_value: str = betterproto2.string_field(8)
1692
1694
  """
1693
1695
 
1694
1696
  """
1695
1697
 
1696
1698
 
1697
1699
  @dataclass(eq=False, repr=False)
1698
- class UninterpretedOptionNamePart(betterproto.Message):
1700
+ class UninterpretedOptionNamePart(betterproto2.Message):
1699
1701
  """
1700
1702
  The name of the uninterpreted option. Each string represents a segment in
1701
1703
  a dot-separated name. is_extension is true iff a segment represents an
@@ -1704,19 +1706,19 @@ class UninterpretedOptionNamePart(betterproto.Message):
1704
1706
  "foo.(bar.baz).qux".
1705
1707
  """
1706
1708
 
1707
- name_part: str = betterproto.string_field(1)
1709
+ name_part: str = betterproto2.string_field(1)
1708
1710
  """
1709
1711
 
1710
1712
  """
1711
1713
 
1712
- is_extension: bool = betterproto.bool_field(2)
1714
+ is_extension: bool = betterproto2.bool_field(2)
1713
1715
  """
1714
1716
 
1715
1717
  """
1716
1718
 
1717
1719
 
1718
1720
  @dataclass(eq=False, repr=False)
1719
- class SourceCodeInfo(betterproto.Message):
1721
+ class SourceCodeInfo(betterproto2.Message):
1720
1722
  """
1721
1723
  ===================================================================
1722
1724
  Optional source code info
@@ -1725,7 +1727,7 @@ class SourceCodeInfo(betterproto.Message):
1725
1727
  FileDescriptorProto was generated.
1726
1728
  """
1727
1729
 
1728
- location: List["SourceCodeInfoLocation"] = betterproto.message_field(1, repeated=True)
1730
+ location: List["SourceCodeInfoLocation"] = betterproto2.message_field(1, repeated=True)
1729
1731
  """
1730
1732
  A Location identifies a piece of source code in a .proto file which
1731
1733
  corresponds to a particular definition. This information is intended
@@ -1774,10 +1776,10 @@ class SourceCodeInfo(betterproto.Message):
1774
1776
 
1775
1777
 
1776
1778
  @dataclass(eq=False, repr=False)
1777
- class SourceCodeInfoLocation(betterproto.Message):
1779
+ class SourceCodeInfoLocation(betterproto2.Message):
1778
1780
  """ """
1779
1781
 
1780
- path: List[int] = betterproto.int32_field(1, repeated=True)
1782
+ path: List[int] = betterproto2.int32_field(1, repeated=True)
1781
1783
  """
1782
1784
  Identifies which part of the FileDescriptorProto was defined at this
1783
1785
  location.
@@ -1804,7 +1806,7 @@ class SourceCodeInfoLocation(betterproto.Message):
1804
1806
  of the label to the terminating semicolon).
1805
1807
  """
1806
1808
 
1807
- span: List[int] = betterproto.int32_field(2, repeated=True)
1809
+ span: List[int] = betterproto2.int32_field(2, repeated=True)
1808
1810
  """
1809
1811
  Always has exactly three or four elements: start line, start column,
1810
1812
  end line (optional, otherwise assumed same as start line), end column.
@@ -1813,7 +1815,7 @@ class SourceCodeInfoLocation(betterproto.Message):
1813
1815
  1 to each before displaying to a user.
1814
1816
  """
1815
1817
 
1816
- leading_comments: str = betterproto.string_field(3)
1818
+ leading_comments: str = betterproto2.string_field(3)
1817
1819
  """
1818
1820
  If this SourceCodeInfo represents a complete declaration, these are any
1819
1821
  comments appearing before and after the declaration which appear to be
@@ -1864,26 +1866,26 @@ class SourceCodeInfoLocation(betterproto.Message):
1864
1866
  // ignored detached comments.
1865
1867
  """
1866
1868
 
1867
- trailing_comments: str = betterproto.string_field(4)
1869
+ trailing_comments: str = betterproto2.string_field(4)
1868
1870
  """
1869
1871
 
1870
1872
  """
1871
1873
 
1872
- leading_detached_comments: List[str] = betterproto.string_field(6, repeated=True)
1874
+ leading_detached_comments: List[str] = betterproto2.string_field(6, repeated=True)
1873
1875
  """
1874
1876
 
1875
1877
  """
1876
1878
 
1877
1879
 
1878
1880
  @dataclass(eq=False, repr=False)
1879
- class GeneratedCodeInfo(betterproto.Message):
1881
+ class GeneratedCodeInfo(betterproto2.Message):
1880
1882
  """
1881
1883
  Describes the relationship between generated code and its original source
1882
1884
  file. A GeneratedCodeInfo message is associated with only one generated
1883
1885
  source file, but may contain references to different source .proto files.
1884
1886
  """
1885
1887
 
1886
- annotation: List["GeneratedCodeInfoAnnotation"] = betterproto.message_field(1, repeated=True)
1888
+ annotation: List["GeneratedCodeInfoAnnotation"] = betterproto2.message_field(1, repeated=True)
1887
1889
  """
1888
1890
  An Annotation connects some span of text in generated code to an element
1889
1891
  of its generating .proto file.
@@ -1891,25 +1893,25 @@ class GeneratedCodeInfo(betterproto.Message):
1891
1893
 
1892
1894
 
1893
1895
  @dataclass(eq=False, repr=False)
1894
- class GeneratedCodeInfoAnnotation(betterproto.Message):
1896
+ class GeneratedCodeInfoAnnotation(betterproto2.Message):
1895
1897
  """ """
1896
1898
 
1897
- path: List[int] = betterproto.int32_field(1, repeated=True)
1899
+ path: List[int] = betterproto2.int32_field(1, repeated=True)
1898
1900
  """
1899
1901
  Identifies the element in the original source .proto file. This field
1900
1902
  is formatted the same as SourceCodeInfo.Location.path.
1901
1903
  """
1902
1904
 
1903
- source_file: str = betterproto.string_field(2)
1905
+ source_file: str = betterproto2.string_field(2)
1904
1906
  """Identifies the filesystem path to the original source .proto."""
1905
1907
 
1906
- begin: int = betterproto.int32_field(3)
1908
+ begin: int = betterproto2.int32_field(3)
1907
1909
  """
1908
1910
  Identifies the starting offset in bytes in the generated code
1909
1911
  that relates to the identified object.
1910
1912
  """
1911
1913
 
1912
- end: int = betterproto.int32_field(4)
1914
+ end: int = betterproto2.int32_field(4)
1913
1915
  """
1914
1916
  Identifies the ending offset in bytes in the generated code that
1915
1917
  relates to the identified offset. The end offset should be one past
@@ -1918,7 +1920,7 @@ class GeneratedCodeInfoAnnotation(betterproto.Message):
1918
1920
 
1919
1921
 
1920
1922
  @dataclass(eq=False, repr=False)
1921
- class Duration(betterproto.Message):
1923
+ class Duration(betterproto2.Message):
1922
1924
  """
1923
1925
  A Duration represents a signed, fixed-length span of time represented
1924
1926
  as a count of seconds and fractions of seconds at nanosecond
@@ -1980,14 +1982,14 @@ class Duration(betterproto.Message):
1980
1982
  microsecond should be expressed in JSON format as "3.000001s".
1981
1983
  """
1982
1984
 
1983
- seconds: int = betterproto.int64_field(1)
1985
+ seconds: int = betterproto2.int64_field(1)
1984
1986
  """
1985
1987
  Signed seconds of the span of time. Must be from -315,576,000,000
1986
1988
  to +315,576,000,000 inclusive. Note: these bounds are computed from:
1987
1989
  60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
1988
1990
  """
1989
1991
 
1990
- nanos: int = betterproto.int32_field(2)
1992
+ nanos: int = betterproto2.int32_field(2)
1991
1993
  """
1992
1994
  Signed fractions of a second at nanosecond resolution of the span
1993
1995
  of time. Durations less than one second are represented with a 0
@@ -1999,7 +2001,7 @@ class Duration(betterproto.Message):
1999
2001
 
2000
2002
 
2001
2003
  @dataclass(eq=False, repr=False)
2002
- class Empty(betterproto.Message):
2004
+ class Empty(betterproto2.Message):
2003
2005
  """
2004
2006
  A generic empty message that you can re-use to avoid defining duplicated
2005
2007
  empty messages in your APIs. A typical example is to use it as the request
@@ -2016,7 +2018,7 @@ class Empty(betterproto.Message):
2016
2018
 
2017
2019
 
2018
2020
  @dataclass(eq=False, repr=False)
2019
- class FieldMask(betterproto.Message):
2021
+ class FieldMask(betterproto2.Message):
2020
2022
  """
2021
2023
  `FieldMask` represents a set of symbolic field paths, for example:
2022
2024
 
@@ -2218,12 +2220,12 @@ class FieldMask(betterproto.Message):
2218
2220
  `INVALID_ARGUMENT` error if any path is unmappable.
2219
2221
  """
2220
2222
 
2221
- paths: List[str] = betterproto.string_field(1, repeated=True)
2223
+ paths: List[str] = betterproto2.string_field(1, repeated=True)
2222
2224
  """The set of field mask paths."""
2223
2225
 
2224
2226
 
2225
2227
  @dataclass(eq=False, repr=False)
2226
- class Struct(betterproto.Message):
2228
+ class Struct(betterproto2.Message):
2227
2229
  """
2228
2230
  `Struct` represents a structured data value, consisting of fields
2229
2231
  which map to dynamically typed values. In some languages, `Struct`
@@ -2235,7 +2237,7 @@ class Struct(betterproto.Message):
2235
2237
  The JSON representation for `Struct` is JSON object.
2236
2238
  """
2237
2239
 
2238
- fields: Dict[str, "Value"] = betterproto.map_field(1, betterproto.TYPE_STRING, betterproto.TYPE_MESSAGE)
2240
+ fields: Dict[str, "Value"] = betterproto2.map_field(1, betterproto2.TYPE_STRING, betterproto2.TYPE_MESSAGE)
2239
2241
  """Unordered map of dynamically typed values."""
2240
2242
 
2241
2243
  @hybridmethod
@@ -2255,7 +2257,7 @@ class Struct(betterproto.Message):
2255
2257
 
2256
2258
  def to_dict(
2257
2259
  self,
2258
- casing: betterproto.Casing = betterproto.Casing.CAMEL,
2260
+ casing: betterproto2.Casing = betterproto2.Casing.CAMEL,
2259
2261
  include_default_values: bool = False,
2260
2262
  ) -> Dict[str, Any]:
2261
2263
  output = {**self.fields}
@@ -2266,7 +2268,7 @@ class Struct(betterproto.Message):
2266
2268
 
2267
2269
 
2268
2270
  @dataclass(eq=False, repr=False)
2269
- class Value(betterproto.Message):
2271
+ class Value(betterproto2.Message):
2270
2272
  """
2271
2273
  `Value` represents a dynamically typed value which can be either
2272
2274
  null, a number, a string, a boolean, a recursive struct value, or a
@@ -2276,39 +2278,41 @@ class Value(betterproto.Message):
2276
2278
  The JSON representation for `Value` is JSON value.
2277
2279
  """
2278
2280
 
2279
- null_value: "NullValue" = betterproto.enum_field(1, enum_default_value=lambda: NullValue.try_value(0), group="kind")
2281
+ null_value: "NullValue" = betterproto2.enum_field(
2282
+ 1, enum_default_value=lambda: NullValue.try_value(0), group="kind"
2283
+ )
2280
2284
  """Represents a null value."""
2281
2285
 
2282
- number_value: float = betterproto.double_field(2, group="kind")
2286
+ number_value: float = betterproto2.double_field(2, group="kind")
2283
2287
  """Represents a double value."""
2284
2288
 
2285
- string_value: str = betterproto.string_field(3, group="kind")
2289
+ string_value: str = betterproto2.string_field(3, group="kind")
2286
2290
  """Represents a string value."""
2287
2291
 
2288
- bool_value: bool = betterproto.bool_field(4, group="kind")
2292
+ bool_value: bool = betterproto2.bool_field(4, group="kind")
2289
2293
  """Represents a boolean value."""
2290
2294
 
2291
- struct_value: "Struct" = betterproto.message_field(5, group="kind")
2295
+ struct_value: "Struct" = betterproto2.message_field(5, group="kind")
2292
2296
  """Represents a structured value."""
2293
2297
 
2294
- list_value: "ListValue" = betterproto.message_field(6, group="kind")
2298
+ list_value: "ListValue" = betterproto2.message_field(6, group="kind")
2295
2299
  """Represents a repeated `Value`."""
2296
2300
 
2297
2301
 
2298
2302
  @dataclass(eq=False, repr=False)
2299
- class ListValue(betterproto.Message):
2303
+ class ListValue(betterproto2.Message):
2300
2304
  """
2301
2305
  `ListValue` is a wrapper around a repeated field of values.
2302
2306
 
2303
2307
  The JSON representation for `ListValue` is JSON array.
2304
2308
  """
2305
2309
 
2306
- values: List["Value"] = betterproto.message_field(1, repeated=True)
2310
+ values: List["Value"] = betterproto2.message_field(1, repeated=True)
2307
2311
  """Repeated field of dynamically typed values."""
2308
2312
 
2309
2313
 
2310
2314
  @dataclass(eq=False, repr=False)
2311
- class Timestamp(betterproto.Message):
2315
+ class Timestamp(betterproto2.Message):
2312
2316
  """
2313
2317
  A Timestamp represents a point in time independent of any time zone or local
2314
2318
  calendar, encoded as a count of seconds and fractions of seconds at
@@ -2393,14 +2397,14 @@ class Timestamp(betterproto.Message):
2393
2397
  ) to obtain a formatter capable of generating timestamps in this format.
2394
2398
  """
2395
2399
 
2396
- seconds: int = betterproto.int64_field(1)
2400
+ seconds: int = betterproto2.int64_field(1)
2397
2401
  """
2398
2402
  Represents seconds of UTC time since Unix epoch
2399
2403
  1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
2400
2404
  9999-12-31T23:59:59Z inclusive.
2401
2405
  """
2402
2406
 
2403
- nanos: int = betterproto.int32_field(2)
2407
+ nanos: int = betterproto2.int32_field(2)
2404
2408
  """
2405
2409
  Non-negative fractions of a second at nanosecond resolution. Negative
2406
2410
  second values with fractions must still have non-negative nanos values
@@ -2410,108 +2414,108 @@ class Timestamp(betterproto.Message):
2410
2414
 
2411
2415
 
2412
2416
  @dataclass(eq=False, repr=False)
2413
- class DoubleValue(betterproto.Message):
2417
+ class DoubleValue(betterproto2.Message):
2414
2418
  """
2415
2419
  Wrapper message for `double`.
2416
2420
 
2417
2421
  The JSON representation for `DoubleValue` is JSON number.
2418
2422
  """
2419
2423
 
2420
- value: float = betterproto.double_field(1)
2424
+ value: float = betterproto2.double_field(1)
2421
2425
  """The double value."""
2422
2426
 
2423
2427
 
2424
2428
  @dataclass(eq=False, repr=False)
2425
- class FloatValue(betterproto.Message):
2429
+ class FloatValue(betterproto2.Message):
2426
2430
  """
2427
2431
  Wrapper message for `float`.
2428
2432
 
2429
2433
  The JSON representation for `FloatValue` is JSON number.
2430
2434
  """
2431
2435
 
2432
- value: float = betterproto.float_field(1)
2436
+ value: float = betterproto2.float_field(1)
2433
2437
  """The float value."""
2434
2438
 
2435
2439
 
2436
2440
  @dataclass(eq=False, repr=False)
2437
- class Int64Value(betterproto.Message):
2441
+ class Int64Value(betterproto2.Message):
2438
2442
  """
2439
2443
  Wrapper message for `int64`.
2440
2444
 
2441
2445
  The JSON representation for `Int64Value` is JSON string.
2442
2446
  """
2443
2447
 
2444
- value: int = betterproto.int64_field(1)
2448
+ value: int = betterproto2.int64_field(1)
2445
2449
  """The int64 value."""
2446
2450
 
2447
2451
 
2448
2452
  @dataclass(eq=False, repr=False)
2449
- class UInt64Value(betterproto.Message):
2453
+ class UInt64Value(betterproto2.Message):
2450
2454
  """
2451
2455
  Wrapper message for `uint64`.
2452
2456
 
2453
2457
  The JSON representation for `UInt64Value` is JSON string.
2454
2458
  """
2455
2459
 
2456
- value: int = betterproto.uint64_field(1)
2460
+ value: int = betterproto2.uint64_field(1)
2457
2461
  """The uint64 value."""
2458
2462
 
2459
2463
 
2460
2464
  @dataclass(eq=False, repr=False)
2461
- class Int32Value(betterproto.Message):
2465
+ class Int32Value(betterproto2.Message):
2462
2466
  """
2463
2467
  Wrapper message for `int32`.
2464
2468
 
2465
2469
  The JSON representation for `Int32Value` is JSON number.
2466
2470
  """
2467
2471
 
2468
- value: int = betterproto.int32_field(1)
2472
+ value: int = betterproto2.int32_field(1)
2469
2473
  """The int32 value."""
2470
2474
 
2471
2475
 
2472
2476
  @dataclass(eq=False, repr=False)
2473
- class UInt32Value(betterproto.Message):
2477
+ class UInt32Value(betterproto2.Message):
2474
2478
  """
2475
2479
  Wrapper message for `uint32`.
2476
2480
 
2477
2481
  The JSON representation for `UInt32Value` is JSON number.
2478
2482
  """
2479
2483
 
2480
- value: int = betterproto.uint32_field(1)
2484
+ value: int = betterproto2.uint32_field(1)
2481
2485
  """The uint32 value."""
2482
2486
 
2483
2487
 
2484
2488
  @dataclass(eq=False, repr=False)
2485
- class BoolValue(betterproto.Message):
2489
+ class BoolValue(betterproto2.Message):
2486
2490
  """
2487
2491
  Wrapper message for `bool`.
2488
2492
 
2489
2493
  The JSON representation for `BoolValue` is JSON `true` and `false`.
2490
2494
  """
2491
2495
 
2492
- value: bool = betterproto.bool_field(1)
2496
+ value: bool = betterproto2.bool_field(1)
2493
2497
  """The bool value."""
2494
2498
 
2495
2499
 
2496
2500
  @dataclass(eq=False, repr=False)
2497
- class StringValue(betterproto.Message):
2501
+ class StringValue(betterproto2.Message):
2498
2502
  """
2499
2503
  Wrapper message for `string`.
2500
2504
 
2501
2505
  The JSON representation for `StringValue` is JSON string.
2502
2506
  """
2503
2507
 
2504
- value: str = betterproto.string_field(1)
2508
+ value: str = betterproto2.string_field(1)
2505
2509
  """The string value."""
2506
2510
 
2507
2511
 
2508
2512
  @dataclass(eq=False, repr=False)
2509
- class BytesValue(betterproto.Message):
2513
+ class BytesValue(betterproto2.Message):
2510
2514
  """
2511
2515
  Wrapper message for `bytes`.
2512
2516
 
2513
2517
  The JSON representation for `BytesValue` is JSON string.
2514
2518
  """
2515
2519
 
2516
- value: bytes = betterproto.bytes_field(1)
2520
+ value: bytes = betterproto2.bytes_field(1)
2517
2521
  """The bytes value."""