@bufbuild/protobuf 0.0.1-alpha.1 → 0.0.1

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.
Files changed (127) hide show
  1. package/README.md +21 -1
  2. package/dist/cjs/binary-encoding.js +402 -410
  3. package/dist/cjs/descriptor-registry.js +407 -449
  4. package/dist/cjs/descriptor-set.js +416 -513
  5. package/dist/cjs/field.js +30 -30
  6. package/dist/cjs/google/protobuf/any_pb.js +122 -140
  7. package/dist/cjs/google/protobuf/api_pb.js +177 -224
  8. package/dist/cjs/google/protobuf/compiler/plugin_pb.js +125 -227
  9. package/dist/cjs/google/protobuf/descriptor_pb.js +1029 -1888
  10. package/dist/cjs/google/protobuf/duration_pb.js +72 -88
  11. package/dist/cjs/google/protobuf/empty_pb.js +17 -17
  12. package/dist/cjs/google/protobuf/field_mask_pb.js +77 -94
  13. package/dist/cjs/google/protobuf/source_context_pb.js +25 -25
  14. package/dist/cjs/google/protobuf/struct_pb.js +144 -181
  15. package/dist/cjs/google/protobuf/timestamp_pb.js +86 -123
  16. package/dist/cjs/google/protobuf/type_pb.js +406 -462
  17. package/dist/cjs/google/protobuf/wrappers_pb.js +407 -470
  18. package/dist/cjs/index.js +24 -122
  19. package/dist/cjs/message.js +81 -89
  20. package/dist/cjs/private/assert.js +20 -26
  21. package/dist/cjs/private/base64.js +79 -78
  22. package/dist/cjs/private/binary-format-common.js +195 -208
  23. package/dist/cjs/private/binary-format-proto2.js +75 -109
  24. package/dist/cjs/private/binary-format-proto3.js +57 -90
  25. package/dist/cjs/private/enum.js +38 -43
  26. package/dist/cjs/private/field-list.js +51 -50
  27. package/dist/cjs/private/field-wrapper.js +8 -10
  28. package/dist/cjs/private/field.js +22 -25
  29. package/dist/cjs/private/goog-varint.js +275 -0
  30. package/dist/cjs/private/json-format-common.js +414 -440
  31. package/dist/cjs/private/json-format-proto2.js +78 -89
  32. package/dist/cjs/private/json-format-proto3.js +69 -93
  33. package/dist/cjs/private/message-type.js +26 -27
  34. package/dist/cjs/private/names.js +58 -62
  35. package/dist/cjs/private/proto-runtime.js +11 -16
  36. package/dist/cjs/private/scalars.js +100 -103
  37. package/dist/cjs/private/util-common.js +180 -210
  38. package/dist/cjs/proto-int64.js +111 -112
  39. package/dist/cjs/proto2.js +50 -63
  40. package/dist/cjs/proto3.js +61 -74
  41. package/dist/cjs/service-type.js +14 -17
  42. package/dist/cjs/type-registry.js +33 -31
  43. package/dist/esm/binary-encoding.js +401 -414
  44. package/dist/esm/descriptor-registry.js +409 -458
  45. package/dist/esm/descriptor-set.js +417 -478
  46. package/dist/esm/field.js +29 -29
  47. package/dist/esm/google/protobuf/any_pb.js +122 -140
  48. package/dist/esm/google/protobuf/api_pb.js +177 -197
  49. package/dist/esm/google/protobuf/compiler/plugin_pb.js +123 -216
  50. package/dist/esm/google/protobuf/descriptor_pb.js +1013 -1804
  51. package/dist/esm/google/protobuf/duration_pb.js +72 -88
  52. package/dist/esm/google/protobuf/empty_pb.js +17 -17
  53. package/dist/esm/google/protobuf/field_mask_pb.js +77 -94
  54. package/dist/esm/google/protobuf/source_context_pb.js +25 -25
  55. package/dist/esm/google/protobuf/struct_pb.js +143 -180
  56. package/dist/esm/google/protobuf/timestamp_pb.js +86 -123
  57. package/dist/esm/google/protobuf/type_pb.js +401 -421
  58. package/dist/esm/google/protobuf/wrappers_pb.js +406 -397
  59. package/dist/esm/index.js +1 -1
  60. package/dist/esm/message.js +81 -89
  61. package/dist/esm/private/assert.js +19 -21
  62. package/dist/esm/private/base64.js +79 -78
  63. package/dist/esm/private/binary-format-common.js +196 -207
  64. package/dist/esm/private/binary-format-proto2.js +76 -81
  65. package/dist/esm/private/binary-format-proto3.js +58 -67
  66. package/dist/esm/private/enum.js +38 -43
  67. package/dist/esm/private/field-list.js +51 -50
  68. package/dist/esm/private/field-wrapper.js +8 -10
  69. package/dist/esm/private/field.js +22 -22
  70. package/dist/esm/private/goog-varint.js +266 -0
  71. package/dist/esm/private/json-format-common.js +414 -435
  72. package/dist/esm/private/json-format-proto2.js +76 -81
  73. package/dist/esm/private/json-format-proto3.js +66 -80
  74. package/dist/esm/private/message-type.js +27 -28
  75. package/dist/esm/private/names.js +57 -57
  76. package/dist/esm/private/proto-runtime.js +11 -11
  77. package/dist/esm/private/scalars.js +99 -99
  78. package/dist/esm/private/util-common.js +180 -192
  79. package/dist/esm/proto-int64.js +111 -112
  80. package/dist/esm/proto2.js +50 -57
  81. package/dist/esm/proto3.js +61 -68
  82. package/dist/esm/service-type.js +12 -12
  83. package/dist/esm/type-registry.js +33 -31
  84. package/dist/types/binary-encoding.d.ts +398 -398
  85. package/dist/types/binary-format.d.ts +69 -91
  86. package/dist/types/descriptor-registry.d.ts +23 -29
  87. package/dist/types/descriptor-set.d.ts +107 -128
  88. package/dist/types/enum.d.ts +21 -21
  89. package/dist/types/field-list.d.ts +21 -21
  90. package/dist/types/field.d.ts +191 -231
  91. package/dist/types/google/protobuf/any_pb.d.ts +56 -77
  92. package/dist/types/google/protobuf/api_pb.d.ts +144 -187
  93. package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +195 -257
  94. package/dist/types/google/protobuf/descriptor_pb.d.ts +1360 -1737
  95. package/dist/types/google/protobuf/duration_pb.d.ts +30 -50
  96. package/dist/types/google/protobuf/empty_pb.d.ts +9 -28
  97. package/dist/types/google/protobuf/field_mask_pb.d.ts +17 -37
  98. package/dist/types/google/protobuf/source_context_pb.d.ts +16 -35
  99. package/dist/types/google/protobuf/struct_pb.d.ts +64 -115
  100. package/dist/types/google/protobuf/timestamp_pb.d.ts +31 -51
  101. package/dist/types/google/protobuf/type_pb.d.ts +355 -422
  102. package/dist/types/google/protobuf/wrappers_pb.d.ts +181 -297
  103. package/dist/types/index.d.ts +4 -27
  104. package/dist/types/json-format.d.ts +70 -89
  105. package/dist/types/message-type.d.ts +38 -46
  106. package/dist/types/message.d.ts +73 -99
  107. package/dist/types/private/assert.d.ts +1 -4
  108. package/dist/types/private/binary-format-common.d.ts +6 -32
  109. package/dist/types/private/enum.d.ts +4 -11
  110. package/dist/types/private/field-list.d.ts +14 -21
  111. package/dist/types/private/field-wrapper.d.ts +5 -11
  112. package/dist/types/private/field.d.ts +12 -12
  113. package/dist/types/{google/varint.d.ts → private/goog-varint.d.ts} +6 -13
  114. package/dist/types/private/json-format-common.d.ts +5 -27
  115. package/dist/types/private/message-type.d.ts +3 -8
  116. package/dist/types/private/names.d.ts +1 -4
  117. package/dist/types/private/options-map.d.ts +1 -1
  118. package/dist/types/private/proto-runtime.d.ts +29 -42
  119. package/dist/types/private/scalars.d.ts +5 -12
  120. package/dist/types/private/util-common.d.ts +1 -4
  121. package/dist/types/private/util.d.ts +29 -41
  122. package/dist/types/proto-int64.d.ts +42 -42
  123. package/dist/types/service-type.d.ts +37 -57
  124. package/dist/types/type-registry.d.ts +13 -15
  125. package/package.json +2 -2
  126. package/dist/cjs/google/varint.js +0 -280
  127. package/dist/esm/google/varint.js +0 -265
@@ -1,11 +1,4 @@
1
- import type {
2
- BinaryReadOptions,
3
- FieldList,
4
- JsonReadOptions,
5
- JsonValue,
6
- PartialMessage,
7
- PlainMessage,
8
- } from "../../index.js";
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "../../index.js";
9
2
  import { Message } from "../../index.js";
10
3
  /**
11
4
  * The protocol compiler can output a FileDescriptorSet containing the .proto
@@ -14,30 +7,18 @@ import { Message } from "../../index.js";
14
7
  * @generated from message google.protobuf.FileDescriptorSet
15
8
  */
16
9
  export declare class FileDescriptorSet extends Message<FileDescriptorSet> {
17
- /**
18
- * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
19
- */
20
- file: FileDescriptorProto[];
21
- constructor(data?: PartialMessage<FileDescriptorSet>);
22
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
23
- static readonly typeName = "google.protobuf.FileDescriptorSet";
24
- static readonly fields: FieldList;
25
- static fromBinary(
26
- bytes: Uint8Array,
27
- options?: Partial<BinaryReadOptions>
28
- ): FileDescriptorSet;
29
- static fromJson(
30
- jsonValue: JsonValue,
31
- options?: Partial<JsonReadOptions>
32
- ): FileDescriptorSet;
33
- static fromJsonString(
34
- jsonString: string,
35
- options?: Partial<JsonReadOptions>
36
- ): FileDescriptorSet;
37
- static equals(
38
- a: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined,
39
- b: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined
40
- ): boolean;
10
+ /**
11
+ * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
12
+ */
13
+ file: FileDescriptorProto[];
14
+ constructor(data?: PartialMessage<FileDescriptorSet>);
15
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
16
+ static readonly typeName = "google.protobuf.FileDescriptorSet";
17
+ static readonly fields: FieldList;
18
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorSet;
19
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileDescriptorSet;
20
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileDescriptorSet;
21
+ static equals(a: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined, b: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined): boolean;
41
22
  }
42
23
  /**
43
24
  * Describes a complete .proto file.
@@ -45,95 +26,83 @@ export declare class FileDescriptorSet extends Message<FileDescriptorSet> {
45
26
  * @generated from message google.protobuf.FileDescriptorProto
46
27
  */
47
28
  export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
48
- /**
49
- * file name, relative to root of source tree
50
- *
51
- * @generated from field: optional string name = 1;
52
- */
53
- name?: string;
54
- /**
55
- * e.g. "foo", "foo.bar", etc.
56
- *
57
- * @generated from field: optional string package = 2;
58
- */
59
- package?: string;
60
- /**
61
- * Names of files imported by this file.
62
- *
63
- * @generated from field: repeated string dependency = 3;
64
- */
65
- dependency: string[];
66
- /**
67
- * Indexes of the public imported files in the dependency list above.
68
- *
69
- * @generated from field: repeated int32 public_dependency = 10;
70
- */
71
- publicDependency: number[];
72
- /**
73
- * Indexes of the weak imported files in the dependency list.
74
- * For Google-internal migration only. Do not use.
75
- *
76
- * @generated from field: repeated int32 weak_dependency = 11;
77
- */
78
- weakDependency: number[];
79
- /**
80
- * All top-level definitions in this file.
81
- *
82
- * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4;
83
- */
84
- messageType: DescriptorProto[];
85
- /**
86
- * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
87
- */
88
- enumType: EnumDescriptorProto[];
89
- /**
90
- * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6;
91
- */
92
- service: ServiceDescriptorProto[];
93
- /**
94
- * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
95
- */
96
- extension: FieldDescriptorProto[];
97
- /**
98
- * @generated from field: optional google.protobuf.FileOptions options = 8;
99
- */
100
- options?: FileOptions;
101
- /**
102
- * This field contains optional information about the original source code.
103
- * You may safely remove this entire field without harming runtime
104
- * functionality of the descriptors -- the information is needed only by
105
- * development tools.
106
- *
107
- * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9;
108
- */
109
- sourceCodeInfo?: SourceCodeInfo;
110
- /**
111
- * The syntax of the proto file.
112
- * The supported values are "proto2" and "proto3".
113
- *
114
- * @generated from field: optional string syntax = 12;
115
- */
116
- syntax?: string;
117
- constructor(data?: PartialMessage<FileDescriptorProto>);
118
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
119
- static readonly typeName = "google.protobuf.FileDescriptorProto";
120
- static readonly fields: FieldList;
121
- static fromBinary(
122
- bytes: Uint8Array,
123
- options?: Partial<BinaryReadOptions>
124
- ): FileDescriptorProto;
125
- static fromJson(
126
- jsonValue: JsonValue,
127
- options?: Partial<JsonReadOptions>
128
- ): FileDescriptorProto;
129
- static fromJsonString(
130
- jsonString: string,
131
- options?: Partial<JsonReadOptions>
132
- ): FileDescriptorProto;
133
- static equals(
134
- a: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined,
135
- b: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined
136
- ): boolean;
29
+ /**
30
+ * file name, relative to root of source tree
31
+ *
32
+ * @generated from field: optional string name = 1;
33
+ */
34
+ name?: string;
35
+ /**
36
+ * e.g. "foo", "foo.bar", etc.
37
+ *
38
+ * @generated from field: optional string package = 2;
39
+ */
40
+ package?: string;
41
+ /**
42
+ * Names of files imported by this file.
43
+ *
44
+ * @generated from field: repeated string dependency = 3;
45
+ */
46
+ dependency: string[];
47
+ /**
48
+ * Indexes of the public imported files in the dependency list above.
49
+ *
50
+ * @generated from field: repeated int32 public_dependency = 10;
51
+ */
52
+ publicDependency: number[];
53
+ /**
54
+ * Indexes of the weak imported files in the dependency list.
55
+ * For Google-internal migration only. Do not use.
56
+ *
57
+ * @generated from field: repeated int32 weak_dependency = 11;
58
+ */
59
+ weakDependency: number[];
60
+ /**
61
+ * All top-level definitions in this file.
62
+ *
63
+ * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4;
64
+ */
65
+ messageType: DescriptorProto[];
66
+ /**
67
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
68
+ */
69
+ enumType: EnumDescriptorProto[];
70
+ /**
71
+ * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6;
72
+ */
73
+ service: ServiceDescriptorProto[];
74
+ /**
75
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
76
+ */
77
+ extension: FieldDescriptorProto[];
78
+ /**
79
+ * @generated from field: optional google.protobuf.FileOptions options = 8;
80
+ */
81
+ options?: FileOptions;
82
+ /**
83
+ * This field contains optional information about the original source code.
84
+ * You may safely remove this entire field without harming runtime
85
+ * functionality of the descriptors -- the information is needed only by
86
+ * development tools.
87
+ *
88
+ * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9;
89
+ */
90
+ sourceCodeInfo?: SourceCodeInfo;
91
+ /**
92
+ * The syntax of the proto file.
93
+ * The supported values are "proto2" and "proto3".
94
+ *
95
+ * @generated from field: optional string syntax = 12;
96
+ */
97
+ syntax?: string;
98
+ constructor(data?: PartialMessage<FileDescriptorProto>);
99
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
100
+ static readonly typeName = "google.protobuf.FileDescriptorProto";
101
+ static readonly fields: FieldList;
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorProto;
103
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileDescriptorProto;
104
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileDescriptorProto;
105
+ static equals(a: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined, b: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined): boolean;
137
106
  }
138
107
  /**
139
108
  * Describes a message type.
@@ -141,116 +110,86 @@ export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
141
110
  * @generated from message google.protobuf.DescriptorProto
142
111
  */
143
112
  export declare class DescriptorProto extends Message<DescriptorProto> {
144
- /**
145
- * @generated from field: optional string name = 1;
146
- */
147
- name?: string;
148
- /**
149
- * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
150
- */
151
- field: FieldDescriptorProto[];
152
- /**
153
- * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6;
154
- */
155
- extension: FieldDescriptorProto[];
156
- /**
157
- * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3;
158
- */
159
- nestedType: DescriptorProto[];
160
- /**
161
- * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
162
- */
163
- enumType: EnumDescriptorProto[];
164
- /**
165
- * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
166
- */
167
- extensionRange: DescriptorProto_ExtensionRange[];
168
- /**
169
- * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
170
- */
171
- oneofDecl: OneofDescriptorProto[];
172
- /**
173
- * @generated from field: optional google.protobuf.MessageOptions options = 7;
174
- */
175
- options?: MessageOptions;
176
- /**
177
- * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
178
- */
179
- reservedRange: DescriptorProto_ReservedRange[];
180
- /**
181
- * Reserved field names, which may not be used by fields in the same message.
182
- * A given name may only be reserved once.
183
- *
184
- * @generated from field: repeated string reserved_name = 10;
185
- */
186
- reservedName: string[];
187
- constructor(data?: PartialMessage<DescriptorProto>);
188
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
189
- static readonly typeName = "google.protobuf.DescriptorProto";
190
- static readonly fields: FieldList;
191
- static fromBinary(
192
- bytes: Uint8Array,
193
- options?: Partial<BinaryReadOptions>
194
- ): DescriptorProto;
195
- static fromJson(
196
- jsonValue: JsonValue,
197
- options?: Partial<JsonReadOptions>
198
- ): DescriptorProto;
199
- static fromJsonString(
200
- jsonString: string,
201
- options?: Partial<JsonReadOptions>
202
- ): DescriptorProto;
203
- static equals(
204
- a: DescriptorProto | PlainMessage<DescriptorProto> | undefined,
205
- b: DescriptorProto | PlainMessage<DescriptorProto> | undefined
206
- ): boolean;
113
+ /**
114
+ * @generated from field: optional string name = 1;
115
+ */
116
+ name?: string;
117
+ /**
118
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
119
+ */
120
+ field: FieldDescriptorProto[];
121
+ /**
122
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6;
123
+ */
124
+ extension: FieldDescriptorProto[];
125
+ /**
126
+ * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3;
127
+ */
128
+ nestedType: DescriptorProto[];
129
+ /**
130
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
131
+ */
132
+ enumType: EnumDescriptorProto[];
133
+ /**
134
+ * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
135
+ */
136
+ extensionRange: DescriptorProto_ExtensionRange[];
137
+ /**
138
+ * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
139
+ */
140
+ oneofDecl: OneofDescriptorProto[];
141
+ /**
142
+ * @generated from field: optional google.protobuf.MessageOptions options = 7;
143
+ */
144
+ options?: MessageOptions;
145
+ /**
146
+ * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
147
+ */
148
+ reservedRange: DescriptorProto_ReservedRange[];
149
+ /**
150
+ * Reserved field names, which may not be used by fields in the same message.
151
+ * A given name may only be reserved once.
152
+ *
153
+ * @generated from field: repeated string reserved_name = 10;
154
+ */
155
+ reservedName: string[];
156
+ constructor(data?: PartialMessage<DescriptorProto>);
157
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
158
+ static readonly typeName = "google.protobuf.DescriptorProto";
159
+ static readonly fields: FieldList;
160
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto;
161
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto;
162
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto;
163
+ static equals(a: DescriptorProto | PlainMessage<DescriptorProto> | undefined, b: DescriptorProto | PlainMessage<DescriptorProto> | undefined): boolean;
207
164
  }
208
165
  /**
209
166
  * @generated from message google.protobuf.DescriptorProto.ExtensionRange
210
167
  */
211
168
  export declare class DescriptorProto_ExtensionRange extends Message<DescriptorProto_ExtensionRange> {
212
- /**
213
- * Inclusive.
214
- *
215
- * @generated from field: optional int32 start = 1;
216
- */
217
- start?: number;
218
- /**
219
- * Exclusive.
220
- *
221
- * @generated from field: optional int32 end = 2;
222
- */
223
- end?: number;
224
- /**
225
- * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3;
226
- */
227
- options?: ExtensionRangeOptions;
228
- constructor(data?: PartialMessage<DescriptorProto_ExtensionRange>);
229
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
230
- static readonly typeName = "google.protobuf.DescriptorProto.ExtensionRange";
231
- static readonly fields: FieldList;
232
- static fromBinary(
233
- bytes: Uint8Array,
234
- options?: Partial<BinaryReadOptions>
235
- ): DescriptorProto_ExtensionRange;
236
- static fromJson(
237
- jsonValue: JsonValue,
238
- options?: Partial<JsonReadOptions>
239
- ): DescriptorProto_ExtensionRange;
240
- static fromJsonString(
241
- jsonString: string,
242
- options?: Partial<JsonReadOptions>
243
- ): DescriptorProto_ExtensionRange;
244
- static equals(
245
- a:
246
- | DescriptorProto_ExtensionRange
247
- | PlainMessage<DescriptorProto_ExtensionRange>
248
- | undefined,
249
- b:
250
- | DescriptorProto_ExtensionRange
251
- | PlainMessage<DescriptorProto_ExtensionRange>
252
- | undefined
253
- ): boolean;
169
+ /**
170
+ * Inclusive.
171
+ *
172
+ * @generated from field: optional int32 start = 1;
173
+ */
174
+ start?: number;
175
+ /**
176
+ * Exclusive.
177
+ *
178
+ * @generated from field: optional int32 end = 2;
179
+ */
180
+ end?: number;
181
+ /**
182
+ * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3;
183
+ */
184
+ options?: ExtensionRangeOptions;
185
+ constructor(data?: PartialMessage<DescriptorProto_ExtensionRange>);
186
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
187
+ static readonly typeName = "google.protobuf.DescriptorProto.ExtensionRange";
188
+ static readonly fields: FieldList;
189
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ExtensionRange;
190
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto_ExtensionRange;
191
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto_ExtensionRange;
192
+ static equals(a: DescriptorProto_ExtensionRange | PlainMessage<DescriptorProto_ExtensionRange> | undefined, b: DescriptorProto_ExtensionRange | PlainMessage<DescriptorProto_ExtensionRange> | undefined): boolean;
254
193
  }
255
194
  /**
256
195
  * Range of reserved tag numbers. Reserved tag numbers may not be used by
@@ -260,75 +199,45 @@ export declare class DescriptorProto_ExtensionRange extends Message<DescriptorPr
260
199
  * @generated from message google.protobuf.DescriptorProto.ReservedRange
261
200
  */
262
201
  export declare class DescriptorProto_ReservedRange extends Message<DescriptorProto_ReservedRange> {
263
- /**
264
- * Inclusive.
265
- *
266
- * @generated from field: optional int32 start = 1;
267
- */
268
- start?: number;
269
- /**
270
- * Exclusive.
271
- *
272
- * @generated from field: optional int32 end = 2;
273
- */
274
- end?: number;
275
- constructor(data?: PartialMessage<DescriptorProto_ReservedRange>);
276
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
277
- static readonly typeName = "google.protobuf.DescriptorProto.ReservedRange";
278
- static readonly fields: FieldList;
279
- static fromBinary(
280
- bytes: Uint8Array,
281
- options?: Partial<BinaryReadOptions>
282
- ): DescriptorProto_ReservedRange;
283
- static fromJson(
284
- jsonValue: JsonValue,
285
- options?: Partial<JsonReadOptions>
286
- ): DescriptorProto_ReservedRange;
287
- static fromJsonString(
288
- jsonString: string,
289
- options?: Partial<JsonReadOptions>
290
- ): DescriptorProto_ReservedRange;
291
- static equals(
292
- a:
293
- | DescriptorProto_ReservedRange
294
- | PlainMessage<DescriptorProto_ReservedRange>
295
- | undefined,
296
- b:
297
- | DescriptorProto_ReservedRange
298
- | PlainMessage<DescriptorProto_ReservedRange>
299
- | undefined
300
- ): boolean;
202
+ /**
203
+ * Inclusive.
204
+ *
205
+ * @generated from field: optional int32 start = 1;
206
+ */
207
+ start?: number;
208
+ /**
209
+ * Exclusive.
210
+ *
211
+ * @generated from field: optional int32 end = 2;
212
+ */
213
+ end?: number;
214
+ constructor(data?: PartialMessage<DescriptorProto_ReservedRange>);
215
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
216
+ static readonly typeName = "google.protobuf.DescriptorProto.ReservedRange";
217
+ static readonly fields: FieldList;
218
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ReservedRange;
219
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto_ReservedRange;
220
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto_ReservedRange;
221
+ static equals(a: DescriptorProto_ReservedRange | PlainMessage<DescriptorProto_ReservedRange> | undefined, b: DescriptorProto_ReservedRange | PlainMessage<DescriptorProto_ReservedRange> | undefined): boolean;
301
222
  }
302
223
  /**
303
224
  * @generated from message google.protobuf.ExtensionRangeOptions
304
225
  */
305
226
  export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions> {
306
- /**
307
- * The parser stores options it doesn't recognize here. See above.
308
- *
309
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
310
- */
311
- uninterpretedOption: UninterpretedOption[];
312
- constructor(data?: PartialMessage<ExtensionRangeOptions>);
313
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
314
- static readonly typeName = "google.protobuf.ExtensionRangeOptions";
315
- static readonly fields: FieldList;
316
- static fromBinary(
317
- bytes: Uint8Array,
318
- options?: Partial<BinaryReadOptions>
319
- ): ExtensionRangeOptions;
320
- static fromJson(
321
- jsonValue: JsonValue,
322
- options?: Partial<JsonReadOptions>
323
- ): ExtensionRangeOptions;
324
- static fromJsonString(
325
- jsonString: string,
326
- options?: Partial<JsonReadOptions>
327
- ): ExtensionRangeOptions;
328
- static equals(
329
- a: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined,
330
- b: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined
331
- ): boolean;
227
+ /**
228
+ * The parser stores options it doesn't recognize here. See above.
229
+ *
230
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
231
+ */
232
+ uninterpretedOption: UninterpretedOption[];
233
+ constructor(data?: PartialMessage<ExtensionRangeOptions>);
234
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
235
+ static readonly typeName = "google.protobuf.ExtensionRangeOptions";
236
+ static readonly fields: FieldList;
237
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionRangeOptions;
238
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionRangeOptions;
239
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionRangeOptions;
240
+ static equals(a: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined, b: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined): boolean;
332
241
  }
333
242
  /**
334
243
  * Describes a field within a message.
@@ -336,236 +245,224 @@ export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions
336
245
  * @generated from message google.protobuf.FieldDescriptorProto
337
246
  */
338
247
  export declare class FieldDescriptorProto extends Message<FieldDescriptorProto> {
339
- /**
340
- * @generated from field: optional string name = 1;
341
- */
342
- name?: string;
343
- /**
344
- * @generated from field: optional int32 number = 3;
345
- */
346
- number?: number;
347
- /**
348
- * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4;
349
- */
350
- label?: FieldDescriptorProto_Label;
351
- /**
352
- * If type_name is set, this need not be set. If both this and type_name
353
- * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
354
- *
355
- * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5;
356
- */
357
- type?: FieldDescriptorProto_Type;
358
- /**
359
- * For message and enum types, this is the name of the type. If the name
360
- * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
361
- * rules are used to find the type (i.e. first the nested types within this
362
- * message are searched, then within the parent, on up to the root
363
- * namespace).
364
- *
365
- * @generated from field: optional string type_name = 6;
366
- */
367
- typeName?: string;
368
- /**
369
- * For extensions, this is the name of the type being extended. It is
370
- * resolved in the same manner as type_name.
371
- *
372
- * @generated from field: optional string extendee = 2;
373
- */
374
- extendee?: string;
375
- /**
376
- * For numeric types, contains the original text representation of the value.
377
- * For booleans, "true" or "false".
378
- * For strings, contains the default text contents (not escaped in any way).
379
- * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
380
- * TODO(kenton): Base-64 encode?
381
- *
382
- * @generated from field: optional string default_value = 7;
383
- */
384
- defaultValue?: string;
385
- /**
386
- * If set, gives the index of a oneof in the containing type's oneof_decl
387
- * list. This field is a member of that oneof.
388
- *
389
- * @generated from field: optional int32 oneof_index = 9;
390
- */
391
- oneofIndex?: number;
392
- /**
393
- * JSON name of this field. The value is set by protocol compiler. If the
394
- * user has set a "json_name" option on this field, that option's value
395
- * will be used. Otherwise, it's deduced from the field's name by converting
396
- * it to camelCase.
397
- *
398
- * @generated from field: optional string json_name = 10;
399
- */
400
- jsonName?: string;
401
- /**
402
- * @generated from field: optional google.protobuf.FieldOptions options = 8;
403
- */
404
- options?: FieldOptions;
405
- /**
406
- * If true, this is a proto3 "optional". When a proto3 field is optional, it
407
- * tracks presence regardless of field type.
408
- *
409
- * When proto3_optional is true, this field must be belong to a oneof to
410
- * signal to old proto3 clients that presence is tracked for this field. This
411
- * oneof is known as a "synthetic" oneof, and this field must be its sole
412
- * member (each proto3 optional field gets its own synthetic oneof). Synthetic
413
- * oneofs exist in the descriptor only, and do not generate any API. Synthetic
414
- * oneofs must be ordered after all "real" oneofs.
415
- *
416
- * For message fields, proto3_optional doesn't create any semantic change,
417
- * since non-repeated message fields always track presence. However it still
418
- * indicates the semantic detail of whether the user wrote "optional" or not.
419
- * This can be useful for round-tripping the .proto file. For consistency we
420
- * give message fields a synthetic oneof also, even though it is not required
421
- * to track presence. This is especially important because the parser can't
422
- * tell if a field is a message or an enum, so it must always create a
423
- * synthetic oneof.
424
- *
425
- * Proto2 optional fields do not set this flag, because they already indicate
426
- * optional with `LABEL_OPTIONAL`.
427
- *
428
- * @generated from field: optional bool proto3_optional = 17;
429
- */
430
- proto3Optional?: boolean;
431
- constructor(data?: PartialMessage<FieldDescriptorProto>);
432
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
433
- static readonly typeName = "google.protobuf.FieldDescriptorProto";
434
- static readonly fields: FieldList;
435
- static fromBinary(
436
- bytes: Uint8Array,
437
- options?: Partial<BinaryReadOptions>
438
- ): FieldDescriptorProto;
439
- static fromJson(
440
- jsonValue: JsonValue,
441
- options?: Partial<JsonReadOptions>
442
- ): FieldDescriptorProto;
443
- static fromJsonString(
444
- jsonString: string,
445
- options?: Partial<JsonReadOptions>
446
- ): FieldDescriptorProto;
447
- static equals(
448
- a: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined,
449
- b: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined
450
- ): boolean;
248
+ /**
249
+ * @generated from field: optional string name = 1;
250
+ */
251
+ name?: string;
252
+ /**
253
+ * @generated from field: optional int32 number = 3;
254
+ */
255
+ number?: number;
256
+ /**
257
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4;
258
+ */
259
+ label?: FieldDescriptorProto_Label;
260
+ /**
261
+ * If type_name is set, this need not be set. If both this and type_name
262
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
263
+ *
264
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5;
265
+ */
266
+ type?: FieldDescriptorProto_Type;
267
+ /**
268
+ * For message and enum types, this is the name of the type. If the name
269
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
270
+ * rules are used to find the type (i.e. first the nested types within this
271
+ * message are searched, then within the parent, on up to the root
272
+ * namespace).
273
+ *
274
+ * @generated from field: optional string type_name = 6;
275
+ */
276
+ typeName?: string;
277
+ /**
278
+ * For extensions, this is the name of the type being extended. It is
279
+ * resolved in the same manner as type_name.
280
+ *
281
+ * @generated from field: optional string extendee = 2;
282
+ */
283
+ extendee?: string;
284
+ /**
285
+ * For numeric types, contains the original text representation of the value.
286
+ * For booleans, "true" or "false".
287
+ * For strings, contains the default text contents (not escaped in any way).
288
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
289
+ * TODO(kenton): Base-64 encode?
290
+ *
291
+ * @generated from field: optional string default_value = 7;
292
+ */
293
+ defaultValue?: string;
294
+ /**
295
+ * If set, gives the index of a oneof in the containing type's oneof_decl
296
+ * list. This field is a member of that oneof.
297
+ *
298
+ * @generated from field: optional int32 oneof_index = 9;
299
+ */
300
+ oneofIndex?: number;
301
+ /**
302
+ * JSON name of this field. The value is set by protocol compiler. If the
303
+ * user has set a "json_name" option on this field, that option's value
304
+ * will be used. Otherwise, it's deduced from the field's name by converting
305
+ * it to camelCase.
306
+ *
307
+ * @generated from field: optional string json_name = 10;
308
+ */
309
+ jsonName?: string;
310
+ /**
311
+ * @generated from field: optional google.protobuf.FieldOptions options = 8;
312
+ */
313
+ options?: FieldOptions;
314
+ /**
315
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
316
+ * tracks presence regardless of field type.
317
+ *
318
+ * When proto3_optional is true, this field must be belong to a oneof to
319
+ * signal to old proto3 clients that presence is tracked for this field. This
320
+ * oneof is known as a "synthetic" oneof, and this field must be its sole
321
+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic
322
+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic
323
+ * oneofs must be ordered after all "real" oneofs.
324
+ *
325
+ * For message fields, proto3_optional doesn't create any semantic change,
326
+ * since non-repeated message fields always track presence. However it still
327
+ * indicates the semantic detail of whether the user wrote "optional" or not.
328
+ * This can be useful for round-tripping the .proto file. For consistency we
329
+ * give message fields a synthetic oneof also, even though it is not required
330
+ * to track presence. This is especially important because the parser can't
331
+ * tell if a field is a message or an enum, so it must always create a
332
+ * synthetic oneof.
333
+ *
334
+ * Proto2 optional fields do not set this flag, because they already indicate
335
+ * optional with `LABEL_OPTIONAL`.
336
+ *
337
+ * @generated from field: optional bool proto3_optional = 17;
338
+ */
339
+ proto3Optional?: boolean;
340
+ constructor(data?: PartialMessage<FieldDescriptorProto>);
341
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
342
+ static readonly typeName = "google.protobuf.FieldDescriptorProto";
343
+ static readonly fields: FieldList;
344
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldDescriptorProto;
345
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldDescriptorProto;
346
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldDescriptorProto;
347
+ static equals(a: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined, b: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined): boolean;
451
348
  }
452
349
  /**
453
350
  * @generated from enum google.protobuf.FieldDescriptorProto.Type
454
351
  */
455
352
  export declare enum FieldDescriptorProto_Type {
456
- /**
457
- * 0 is reserved for errors.
458
- * Order is weird for historical reasons.
459
- *
460
- * @generated from enum value: TYPE_DOUBLE = 1;
461
- */
462
- DOUBLE = 1,
463
- /**
464
- * @generated from enum value: TYPE_FLOAT = 2;
465
- */
466
- FLOAT = 2,
467
- /**
468
- * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
469
- * negative values are likely.
470
- *
471
- * @generated from enum value: TYPE_INT64 = 3;
472
- */
473
- INT64 = 3,
474
- /**
475
- * @generated from enum value: TYPE_UINT64 = 4;
476
- */
477
- UINT64 = 4,
478
- /**
479
- * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
480
- * negative values are likely.
481
- *
482
- * @generated from enum value: TYPE_INT32 = 5;
483
- */
484
- INT32 = 5,
485
- /**
486
- * @generated from enum value: TYPE_FIXED64 = 6;
487
- */
488
- FIXED64 = 6,
489
- /**
490
- * @generated from enum value: TYPE_FIXED32 = 7;
491
- */
492
- FIXED32 = 7,
493
- /**
494
- * @generated from enum value: TYPE_BOOL = 8;
495
- */
496
- BOOL = 8,
497
- /**
498
- * @generated from enum value: TYPE_STRING = 9;
499
- */
500
- STRING = 9,
501
- /**
502
- * Tag-delimited aggregate.
503
- * Group type is deprecated and not supported in proto3. However, Proto3
504
- * implementations should still be able to parse the group wire format and
505
- * treat group fields as unknown fields.
506
- *
507
- * @generated from enum value: TYPE_GROUP = 10;
508
- */
509
- GROUP = 10,
510
- /**
511
- * Length-delimited aggregate.
512
- *
513
- * @generated from enum value: TYPE_MESSAGE = 11;
514
- */
515
- MESSAGE = 11,
516
- /**
517
- * New in version 2.
518
- *
519
- * @generated from enum value: TYPE_BYTES = 12;
520
- */
521
- BYTES = 12,
522
- /**
523
- * @generated from enum value: TYPE_UINT32 = 13;
524
- */
525
- UINT32 = 13,
526
- /**
527
- * @generated from enum value: TYPE_ENUM = 14;
528
- */
529
- ENUM = 14,
530
- /**
531
- * @generated from enum value: TYPE_SFIXED32 = 15;
532
- */
533
- SFIXED32 = 15,
534
- /**
535
- * @generated from enum value: TYPE_SFIXED64 = 16;
536
- */
537
- SFIXED64 = 16,
538
- /**
539
- * Uses ZigZag encoding.
540
- *
541
- * @generated from enum value: TYPE_SINT32 = 17;
542
- */
543
- SINT32 = 17,
544
- /**
545
- * Uses ZigZag encoding.
546
- *
547
- * @generated from enum value: TYPE_SINT64 = 18;
548
- */
549
- SINT64 = 18,
353
+ /**
354
+ * 0 is reserved for errors.
355
+ * Order is weird for historical reasons.
356
+ *
357
+ * @generated from enum value: TYPE_DOUBLE = 1;
358
+ */
359
+ DOUBLE = 1,
360
+ /**
361
+ * @generated from enum value: TYPE_FLOAT = 2;
362
+ */
363
+ FLOAT = 2,
364
+ /**
365
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
366
+ * negative values are likely.
367
+ *
368
+ * @generated from enum value: TYPE_INT64 = 3;
369
+ */
370
+ INT64 = 3,
371
+ /**
372
+ * @generated from enum value: TYPE_UINT64 = 4;
373
+ */
374
+ UINT64 = 4,
375
+ /**
376
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
377
+ * negative values are likely.
378
+ *
379
+ * @generated from enum value: TYPE_INT32 = 5;
380
+ */
381
+ INT32 = 5,
382
+ /**
383
+ * @generated from enum value: TYPE_FIXED64 = 6;
384
+ */
385
+ FIXED64 = 6,
386
+ /**
387
+ * @generated from enum value: TYPE_FIXED32 = 7;
388
+ */
389
+ FIXED32 = 7,
390
+ /**
391
+ * @generated from enum value: TYPE_BOOL = 8;
392
+ */
393
+ BOOL = 8,
394
+ /**
395
+ * @generated from enum value: TYPE_STRING = 9;
396
+ */
397
+ STRING = 9,
398
+ /**
399
+ * Tag-delimited aggregate.
400
+ * Group type is deprecated and not supported in proto3. However, Proto3
401
+ * implementations should still be able to parse the group wire format and
402
+ * treat group fields as unknown fields.
403
+ *
404
+ * @generated from enum value: TYPE_GROUP = 10;
405
+ */
406
+ GROUP = 10,
407
+ /**
408
+ * Length-delimited aggregate.
409
+ *
410
+ * @generated from enum value: TYPE_MESSAGE = 11;
411
+ */
412
+ MESSAGE = 11,
413
+ /**
414
+ * New in version 2.
415
+ *
416
+ * @generated from enum value: TYPE_BYTES = 12;
417
+ */
418
+ BYTES = 12,
419
+ /**
420
+ * @generated from enum value: TYPE_UINT32 = 13;
421
+ */
422
+ UINT32 = 13,
423
+ /**
424
+ * @generated from enum value: TYPE_ENUM = 14;
425
+ */
426
+ ENUM = 14,
427
+ /**
428
+ * @generated from enum value: TYPE_SFIXED32 = 15;
429
+ */
430
+ SFIXED32 = 15,
431
+ /**
432
+ * @generated from enum value: TYPE_SFIXED64 = 16;
433
+ */
434
+ SFIXED64 = 16,
435
+ /**
436
+ * Uses ZigZag encoding.
437
+ *
438
+ * @generated from enum value: TYPE_SINT32 = 17;
439
+ */
440
+ SINT32 = 17,
441
+ /**
442
+ * Uses ZigZag encoding.
443
+ *
444
+ * @generated from enum value: TYPE_SINT64 = 18;
445
+ */
446
+ SINT64 = 18
550
447
  }
551
448
  /**
552
449
  * @generated from enum google.protobuf.FieldDescriptorProto.Label
553
450
  */
554
451
  export declare enum FieldDescriptorProto_Label {
555
- /**
556
- * 0 is reserved for errors
557
- *
558
- * @generated from enum value: LABEL_OPTIONAL = 1;
559
- */
560
- OPTIONAL = 1,
561
- /**
562
- * @generated from enum value: LABEL_REQUIRED = 2;
563
- */
564
- REQUIRED = 2,
565
- /**
566
- * @generated from enum value: LABEL_REPEATED = 3;
567
- */
568
- REPEATED = 3,
452
+ /**
453
+ * 0 is reserved for errors
454
+ *
455
+ * @generated from enum value: LABEL_OPTIONAL = 1;
456
+ */
457
+ OPTIONAL = 1,
458
+ /**
459
+ * @generated from enum value: LABEL_REQUIRED = 2;
460
+ */
461
+ REQUIRED = 2,
462
+ /**
463
+ * @generated from enum value: LABEL_REPEATED = 3;
464
+ */
465
+ REPEATED = 3
569
466
  }
570
467
  /**
571
468
  * Describes a oneof.
@@ -573,34 +470,22 @@ export declare enum FieldDescriptorProto_Label {
573
470
  * @generated from message google.protobuf.OneofDescriptorProto
574
471
  */
575
472
  export declare class OneofDescriptorProto extends Message<OneofDescriptorProto> {
576
- /**
577
- * @generated from field: optional string name = 1;
578
- */
579
- name?: string;
580
- /**
581
- * @generated from field: optional google.protobuf.OneofOptions options = 2;
582
- */
583
- options?: OneofOptions;
584
- constructor(data?: PartialMessage<OneofDescriptorProto>);
585
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
586
- static readonly typeName = "google.protobuf.OneofDescriptorProto";
587
- static readonly fields: FieldList;
588
- static fromBinary(
589
- bytes: Uint8Array,
590
- options?: Partial<BinaryReadOptions>
591
- ): OneofDescriptorProto;
592
- static fromJson(
593
- jsonValue: JsonValue,
594
- options?: Partial<JsonReadOptions>
595
- ): OneofDescriptorProto;
596
- static fromJsonString(
597
- jsonString: string,
598
- options?: Partial<JsonReadOptions>
599
- ): OneofDescriptorProto;
600
- static equals(
601
- a: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined,
602
- b: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined
603
- ): boolean;
473
+ /**
474
+ * @generated from field: optional string name = 1;
475
+ */
476
+ name?: string;
477
+ /**
478
+ * @generated from field: optional google.protobuf.OneofOptions options = 2;
479
+ */
480
+ options?: OneofOptions;
481
+ constructor(data?: PartialMessage<OneofDescriptorProto>);
482
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
483
+ static readonly typeName = "google.protobuf.OneofDescriptorProto";
484
+ static readonly fields: FieldList;
485
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofDescriptorProto;
486
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofDescriptorProto;
487
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofDescriptorProto;
488
+ static equals(a: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined, b: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined): boolean;
604
489
  }
605
490
  /**
606
491
  * Describes an enum type.
@@ -608,53 +493,41 @@ export declare class OneofDescriptorProto extends Message<OneofDescriptorProto>
608
493
  * @generated from message google.protobuf.EnumDescriptorProto
609
494
  */
610
495
  export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
611
- /**
612
- * @generated from field: optional string name = 1;
613
- */
614
- name?: string;
615
- /**
616
- * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
617
- */
618
- value: EnumValueDescriptorProto[];
619
- /**
620
- * @generated from field: optional google.protobuf.EnumOptions options = 3;
621
- */
622
- options?: EnumOptions;
623
- /**
624
- * Range of reserved numeric values. Reserved numeric values may not be used
625
- * by enum values in the same enum declaration. Reserved ranges may not
626
- * overlap.
627
- *
628
- * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
629
- */
630
- reservedRange: EnumDescriptorProto_EnumReservedRange[];
631
- /**
632
- * Reserved enum value names, which may not be reused. A given name may only
633
- * be reserved once.
634
- *
635
- * @generated from field: repeated string reserved_name = 5;
636
- */
637
- reservedName: string[];
638
- constructor(data?: PartialMessage<EnumDescriptorProto>);
639
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
640
- static readonly typeName = "google.protobuf.EnumDescriptorProto";
641
- static readonly fields: FieldList;
642
- static fromBinary(
643
- bytes: Uint8Array,
644
- options?: Partial<BinaryReadOptions>
645
- ): EnumDescriptorProto;
646
- static fromJson(
647
- jsonValue: JsonValue,
648
- options?: Partial<JsonReadOptions>
649
- ): EnumDescriptorProto;
650
- static fromJsonString(
651
- jsonString: string,
652
- options?: Partial<JsonReadOptions>
653
- ): EnumDescriptorProto;
654
- static equals(
655
- a: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined,
656
- b: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined
657
- ): boolean;
496
+ /**
497
+ * @generated from field: optional string name = 1;
498
+ */
499
+ name?: string;
500
+ /**
501
+ * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
502
+ */
503
+ value: EnumValueDescriptorProto[];
504
+ /**
505
+ * @generated from field: optional google.protobuf.EnumOptions options = 3;
506
+ */
507
+ options?: EnumOptions;
508
+ /**
509
+ * Range of reserved numeric values. Reserved numeric values may not be used
510
+ * by enum values in the same enum declaration. Reserved ranges may not
511
+ * overlap.
512
+ *
513
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
514
+ */
515
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
516
+ /**
517
+ * Reserved enum value names, which may not be reused. A given name may only
518
+ * be reserved once.
519
+ *
520
+ * @generated from field: repeated string reserved_name = 5;
521
+ */
522
+ reservedName: string[];
523
+ constructor(data?: PartialMessage<EnumDescriptorProto>);
524
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
525
+ static readonly typeName = "google.protobuf.EnumDescriptorProto";
526
+ static readonly fields: FieldList;
527
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto;
528
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumDescriptorProto;
529
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumDescriptorProto;
530
+ static equals(a: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined, b: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined): boolean;
658
531
  }
659
532
  /**
660
533
  * Range of reserved numeric values. Reserved values may not be used by
@@ -667,45 +540,26 @@ export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
667
540
  * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
668
541
  */
669
542
  export declare class EnumDescriptorProto_EnumReservedRange extends Message<EnumDescriptorProto_EnumReservedRange> {
670
- /**
671
- * Inclusive.
672
- *
673
- * @generated from field: optional int32 start = 1;
674
- */
675
- start?: number;
676
- /**
677
- * Inclusive.
678
- *
679
- * @generated from field: optional int32 end = 2;
680
- */
681
- end?: number;
682
- constructor(data?: PartialMessage<EnumDescriptorProto_EnumReservedRange>);
683
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
684
- static readonly typeName =
685
- "google.protobuf.EnumDescriptorProto.EnumReservedRange";
686
- static readonly fields: FieldList;
687
- static fromBinary(
688
- bytes: Uint8Array,
689
- options?: Partial<BinaryReadOptions>
690
- ): EnumDescriptorProto_EnumReservedRange;
691
- static fromJson(
692
- jsonValue: JsonValue,
693
- options?: Partial<JsonReadOptions>
694
- ): EnumDescriptorProto_EnumReservedRange;
695
- static fromJsonString(
696
- jsonString: string,
697
- options?: Partial<JsonReadOptions>
698
- ): EnumDescriptorProto_EnumReservedRange;
699
- static equals(
700
- a:
701
- | EnumDescriptorProto_EnumReservedRange
702
- | PlainMessage<EnumDescriptorProto_EnumReservedRange>
703
- | undefined,
704
- b:
705
- | EnumDescriptorProto_EnumReservedRange
706
- | PlainMessage<EnumDescriptorProto_EnumReservedRange>
707
- | undefined
708
- ): boolean;
543
+ /**
544
+ * Inclusive.
545
+ *
546
+ * @generated from field: optional int32 start = 1;
547
+ */
548
+ start?: number;
549
+ /**
550
+ * Inclusive.
551
+ *
552
+ * @generated from field: optional int32 end = 2;
553
+ */
554
+ end?: number;
555
+ constructor(data?: PartialMessage<EnumDescriptorProto_EnumReservedRange>);
556
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
557
+ static readonly typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
558
+ static readonly fields: FieldList;
559
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto_EnumReservedRange;
560
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumDescriptorProto_EnumReservedRange;
561
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumDescriptorProto_EnumReservedRange;
562
+ static equals(a: EnumDescriptorProto_EnumReservedRange | PlainMessage<EnumDescriptorProto_EnumReservedRange> | undefined, b: EnumDescriptorProto_EnumReservedRange | PlainMessage<EnumDescriptorProto_EnumReservedRange> | undefined): boolean;
709
563
  }
710
564
  /**
711
565
  * Describes a value within an enum.
@@ -713,44 +567,26 @@ export declare class EnumDescriptorProto_EnumReservedRange extends Message<EnumD
713
567
  * @generated from message google.protobuf.EnumValueDescriptorProto
714
568
  */
715
569
  export declare class EnumValueDescriptorProto extends Message<EnumValueDescriptorProto> {
716
- /**
717
- * @generated from field: optional string name = 1;
718
- */
719
- name?: string;
720
- /**
721
- * @generated from field: optional int32 number = 2;
722
- */
723
- number?: number;
724
- /**
725
- * @generated from field: optional google.protobuf.EnumValueOptions options = 3;
726
- */
727
- options?: EnumValueOptions;
728
- constructor(data?: PartialMessage<EnumValueDescriptorProto>);
729
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
730
- static readonly typeName = "google.protobuf.EnumValueDescriptorProto";
731
- static readonly fields: FieldList;
732
- static fromBinary(
733
- bytes: Uint8Array,
734
- options?: Partial<BinaryReadOptions>
735
- ): EnumValueDescriptorProto;
736
- static fromJson(
737
- jsonValue: JsonValue,
738
- options?: Partial<JsonReadOptions>
739
- ): EnumValueDescriptorProto;
740
- static fromJsonString(
741
- jsonString: string,
742
- options?: Partial<JsonReadOptions>
743
- ): EnumValueDescriptorProto;
744
- static equals(
745
- a:
746
- | EnumValueDescriptorProto
747
- | PlainMessage<EnumValueDescriptorProto>
748
- | undefined,
749
- b:
750
- | EnumValueDescriptorProto
751
- | PlainMessage<EnumValueDescriptorProto>
752
- | undefined
753
- ): boolean;
570
+ /**
571
+ * @generated from field: optional string name = 1;
572
+ */
573
+ name?: string;
574
+ /**
575
+ * @generated from field: optional int32 number = 2;
576
+ */
577
+ number?: number;
578
+ /**
579
+ * @generated from field: optional google.protobuf.EnumValueOptions options = 3;
580
+ */
581
+ options?: EnumValueOptions;
582
+ constructor(data?: PartialMessage<EnumValueDescriptorProto>);
583
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
584
+ static readonly typeName = "google.protobuf.EnumValueDescriptorProto";
585
+ static readonly fields: FieldList;
586
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueDescriptorProto;
587
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValueDescriptorProto;
588
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValueDescriptorProto;
589
+ static equals(a: EnumValueDescriptorProto | PlainMessage<EnumValueDescriptorProto> | undefined, b: EnumValueDescriptorProto | PlainMessage<EnumValueDescriptorProto> | undefined): boolean;
754
590
  }
755
591
  /**
756
592
  * Describes a service.
@@ -758,41 +594,26 @@ export declare class EnumValueDescriptorProto extends Message<EnumValueDescripto
758
594
  * @generated from message google.protobuf.ServiceDescriptorProto
759
595
  */
760
596
  export declare class ServiceDescriptorProto extends Message<ServiceDescriptorProto> {
761
- /**
762
- * @generated from field: optional string name = 1;
763
- */
764
- name?: string;
765
- /**
766
- * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
767
- */
768
- method: MethodDescriptorProto[];
769
- /**
770
- * @generated from field: optional google.protobuf.ServiceOptions options = 3;
771
- */
772
- options?: ServiceOptions;
773
- constructor(data?: PartialMessage<ServiceDescriptorProto>);
774
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
775
- static readonly typeName = "google.protobuf.ServiceDescriptorProto";
776
- static readonly fields: FieldList;
777
- static fromBinary(
778
- bytes: Uint8Array,
779
- options?: Partial<BinaryReadOptions>
780
- ): ServiceDescriptorProto;
781
- static fromJson(
782
- jsonValue: JsonValue,
783
- options?: Partial<JsonReadOptions>
784
- ): ServiceDescriptorProto;
785
- static fromJsonString(
786
- jsonString: string,
787
- options?: Partial<JsonReadOptions>
788
- ): ServiceDescriptorProto;
789
- static equals(
790
- a:
791
- | ServiceDescriptorProto
792
- | PlainMessage<ServiceDescriptorProto>
793
- | undefined,
794
- b: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined
795
- ): boolean;
597
+ /**
598
+ * @generated from field: optional string name = 1;
599
+ */
600
+ name?: string;
601
+ /**
602
+ * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
603
+ */
604
+ method: MethodDescriptorProto[];
605
+ /**
606
+ * @generated from field: optional google.protobuf.ServiceOptions options = 3;
607
+ */
608
+ options?: ServiceOptions;
609
+ constructor(data?: PartialMessage<ServiceDescriptorProto>);
610
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
611
+ static readonly typeName = "google.protobuf.ServiceDescriptorProto";
612
+ static readonly fields: FieldList;
613
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceDescriptorProto;
614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceDescriptorProto;
615
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceDescriptorProto;
616
+ static equals(a: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined, b: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined): boolean;
796
617
  }
797
618
  /**
798
619
  * Describes a method of a service.
@@ -800,247 +621,223 @@ export declare class ServiceDescriptorProto extends Message<ServiceDescriptorPro
800
621
  * @generated from message google.protobuf.MethodDescriptorProto
801
622
  */
802
623
  export declare class MethodDescriptorProto extends Message<MethodDescriptorProto> {
803
- /**
804
- * @generated from field: optional string name = 1;
805
- */
806
- name?: string;
807
- /**
808
- * Input and output type names. These are resolved in the same way as
809
- * FieldDescriptorProto.type_name, but must refer to a message type.
810
- *
811
- * @generated from field: optional string input_type = 2;
812
- */
813
- inputType?: string;
814
- /**
815
- * @generated from field: optional string output_type = 3;
816
- */
817
- outputType?: string;
818
- /**
819
- * @generated from field: optional google.protobuf.MethodOptions options = 4;
820
- */
821
- options?: MethodOptions;
822
- /**
823
- * Identifies if client streams multiple client messages
824
- *
825
- * @generated from field: optional bool client_streaming = 5 [default = false];
826
- */
827
- clientStreaming?: boolean;
828
- /**
829
- * Identifies if server streams multiple server messages
830
- *
831
- * @generated from field: optional bool server_streaming = 6 [default = false];
832
- */
833
- serverStreaming?: boolean;
834
- constructor(data?: PartialMessage<MethodDescriptorProto>);
835
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
836
- static readonly typeName = "google.protobuf.MethodDescriptorProto";
837
- static readonly fields: FieldList;
838
- static fromBinary(
839
- bytes: Uint8Array,
840
- options?: Partial<BinaryReadOptions>
841
- ): MethodDescriptorProto;
842
- static fromJson(
843
- jsonValue: JsonValue,
844
- options?: Partial<JsonReadOptions>
845
- ): MethodDescriptorProto;
846
- static fromJsonString(
847
- jsonString: string,
848
- options?: Partial<JsonReadOptions>
849
- ): MethodDescriptorProto;
850
- static equals(
851
- a: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined,
852
- b: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined
853
- ): boolean;
624
+ /**
625
+ * @generated from field: optional string name = 1;
626
+ */
627
+ name?: string;
628
+ /**
629
+ * Input and output type names. These are resolved in the same way as
630
+ * FieldDescriptorProto.type_name, but must refer to a message type.
631
+ *
632
+ * @generated from field: optional string input_type = 2;
633
+ */
634
+ inputType?: string;
635
+ /**
636
+ * @generated from field: optional string output_type = 3;
637
+ */
638
+ outputType?: string;
639
+ /**
640
+ * @generated from field: optional google.protobuf.MethodOptions options = 4;
641
+ */
642
+ options?: MethodOptions;
643
+ /**
644
+ * Identifies if client streams multiple client messages
645
+ *
646
+ * @generated from field: optional bool client_streaming = 5 [default = false];
647
+ */
648
+ clientStreaming?: boolean;
649
+ /**
650
+ * Identifies if server streams multiple server messages
651
+ *
652
+ * @generated from field: optional bool server_streaming = 6 [default = false];
653
+ */
654
+ serverStreaming?: boolean;
655
+ constructor(data?: PartialMessage<MethodDescriptorProto>);
656
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
657
+ static readonly typeName = "google.protobuf.MethodDescriptorProto";
658
+ static readonly fields: FieldList;
659
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodDescriptorProto;
660
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MethodDescriptorProto;
661
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MethodDescriptorProto;
662
+ static equals(a: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined, b: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined): boolean;
854
663
  }
855
664
  /**
856
665
  * @generated from message google.protobuf.FileOptions
857
666
  */
858
667
  export declare class FileOptions extends Message<FileOptions> {
859
- /**
860
- * Sets the Java package where classes generated from this .proto will be
861
- * placed. By default, the proto package is used, but this is often
862
- * inappropriate because proto packages do not normally start with backwards
863
- * domain names.
864
- *
865
- * @generated from field: optional string java_package = 1;
866
- */
867
- javaPackage?: string;
868
- /**
869
- * Controls the name of the wrapper Java class generated for the .proto file.
870
- * That class will always contain the .proto file's getDescriptor() method as
871
- * well as any top-level extensions defined in the .proto file.
872
- * If java_multiple_files is disabled, then all the other classes from the
873
- * .proto file will be nested inside the single wrapper outer class.
874
- *
875
- * @generated from field: optional string java_outer_classname = 8;
876
- */
877
- javaOuterClassname?: string;
878
- /**
879
- * If enabled, then the Java code generator will generate a separate .java
880
- * file for each top-level message, enum, and service defined in the .proto
881
- * file. Thus, these types will *not* be nested inside the wrapper class
882
- * named by java_outer_classname. However, the wrapper class will still be
883
- * generated to contain the file's getDescriptor() method as well as any
884
- * top-level extensions defined in the file.
885
- *
886
- * @generated from field: optional bool java_multiple_files = 10 [default = false];
887
- */
888
- javaMultipleFiles?: boolean;
889
- /**
890
- * This option does nothing.
891
- *
892
- * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true];
893
- * @deprecated
894
- */
895
- javaGenerateEqualsAndHash?: boolean;
896
- /**
897
- * If set true, then the Java2 code generator will generate code that
898
- * throws an exception whenever an attempt is made to assign a non-UTF-8
899
- * byte sequence to a string field.
900
- * Message reflection will do the same.
901
- * However, an extension field still accepts non-UTF-8 byte sequences.
902
- * This option has no effect on when used with the lite runtime.
903
- *
904
- * @generated from field: optional bool java_string_check_utf8 = 27 [default = false];
905
- */
906
- javaStringCheckUtf8?: boolean;
907
- /**
908
- * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
909
- */
910
- optimizeFor?: FileOptions_OptimizeMode;
911
- /**
912
- * Sets the Go package where structs generated from this .proto will be
913
- * placed. If omitted, the Go package will be derived from the following:
914
- * - The basename of the package import path, if provided.
915
- * - Otherwise, the package statement in the .proto file, if present.
916
- * - Otherwise, the basename of the .proto file, without extension.
917
- *
918
- * @generated from field: optional string go_package = 11;
919
- */
920
- goPackage?: string;
921
- /**
922
- * Should generic services be generated in each language? "Generic" services
923
- * are not specific to any particular RPC system. They are generated by the
924
- * main code generators in each language (without additional plugins).
925
- * Generic services were the only kind of service generation supported by
926
- * early versions of google.protobuf.
927
- *
928
- * Generic services are now considered deprecated in favor of using plugins
929
- * that generate code specific to your particular RPC system. Therefore,
930
- * these default to false. Old code which depends on generic services should
931
- * explicitly set them to true.
932
- *
933
- * @generated from field: optional bool cc_generic_services = 16 [default = false];
934
- */
935
- ccGenericServices?: boolean;
936
- /**
937
- * @generated from field: optional bool java_generic_services = 17 [default = false];
938
- */
939
- javaGenericServices?: boolean;
940
- /**
941
- * @generated from field: optional bool py_generic_services = 18 [default = false];
942
- */
943
- pyGenericServices?: boolean;
944
- /**
945
- * @generated from field: optional bool php_generic_services = 42 [default = false];
946
- */
947
- phpGenericServices?: boolean;
948
- /**
949
- * Is this file deprecated?
950
- * Depending on the target platform, this can emit Deprecated annotations
951
- * for everything in the file, or it will be completely ignored; in the very
952
- * least, this is a formalization for deprecating files.
953
- *
954
- * @generated from field: optional bool deprecated = 23 [default = false];
955
- */
956
- deprecated?: boolean;
957
- /**
958
- * Enables the use of arenas for the proto messages in this file. This applies
959
- * only to generated classes for C++.
960
- *
961
- * @generated from field: optional bool cc_enable_arenas = 31 [default = true];
962
- */
963
- ccEnableArenas?: boolean;
964
- /**
965
- * Sets the objective c class prefix which is prepended to all objective c
966
- * generated classes from this .proto. There is no default.
967
- *
968
- * @generated from field: optional string objc_class_prefix = 36;
969
- */
970
- objcClassPrefix?: string;
971
- /**
972
- * Namespace for generated classes; defaults to the package.
973
- *
974
- * @generated from field: optional string csharp_namespace = 37;
975
- */
976
- csharpNamespace?: string;
977
- /**
978
- * By default Swift generators will take the proto package and CamelCase it
979
- * replacing '.' with underscore and use that to prefix the types/symbols
980
- * defined. When this options is provided, they will use this value instead
981
- * to prefix the types/symbols defined.
982
- *
983
- * @generated from field: optional string swift_prefix = 39;
984
- */
985
- swiftPrefix?: string;
986
- /**
987
- * Sets the php class prefix which is prepended to all php generated classes
988
- * from this .proto. Default is empty.
989
- *
990
- * @generated from field: optional string php_class_prefix = 40;
991
- */
992
- phpClassPrefix?: string;
993
- /**
994
- * Use this option to change the namespace of php generated classes. Default
995
- * is empty. When this option is empty, the package name will be used for
996
- * determining the namespace.
997
- *
998
- * @generated from field: optional string php_namespace = 41;
999
- */
1000
- phpNamespace?: string;
1001
- /**
1002
- * Use this option to change the namespace of php generated metadata classes.
1003
- * Default is empty. When this option is empty, the proto file name will be
1004
- * used for determining the namespace.
1005
- *
1006
- * @generated from field: optional string php_metadata_namespace = 44;
1007
- */
1008
- phpMetadataNamespace?: string;
1009
- /**
1010
- * Use this option to change the package of ruby generated classes. Default
1011
- * is empty. When this option is not set, the package name will be used for
1012
- * determining the ruby package.
1013
- *
1014
- * @generated from field: optional string ruby_package = 45;
1015
- */
1016
- rubyPackage?: string;
1017
- /**
1018
- * The parser stores options it doesn't recognize here.
1019
- * See the documentation for the "Options" section above.
1020
- *
1021
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1022
- */
1023
- uninterpretedOption: UninterpretedOption[];
1024
- constructor(data?: PartialMessage<FileOptions>);
1025
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1026
- static readonly typeName = "google.protobuf.FileOptions";
1027
- static readonly fields: FieldList;
1028
- static fromBinary(
1029
- bytes: Uint8Array,
1030
- options?: Partial<BinaryReadOptions>
1031
- ): FileOptions;
1032
- static fromJson(
1033
- jsonValue: JsonValue,
1034
- options?: Partial<JsonReadOptions>
1035
- ): FileOptions;
1036
- static fromJsonString(
1037
- jsonString: string,
1038
- options?: Partial<JsonReadOptions>
1039
- ): FileOptions;
1040
- static equals(
1041
- a: FileOptions | PlainMessage<FileOptions> | undefined,
1042
- b: FileOptions | PlainMessage<FileOptions> | undefined
1043
- ): boolean;
668
+ /**
669
+ * Sets the Java package where classes generated from this .proto will be
670
+ * placed. By default, the proto package is used, but this is often
671
+ * inappropriate because proto packages do not normally start with backwards
672
+ * domain names.
673
+ *
674
+ * @generated from field: optional string java_package = 1;
675
+ */
676
+ javaPackage?: string;
677
+ /**
678
+ * Controls the name of the wrapper Java class generated for the .proto file.
679
+ * That class will always contain the .proto file's getDescriptor() method as
680
+ * well as any top-level extensions defined in the .proto file.
681
+ * If java_multiple_files is disabled, then all the other classes from the
682
+ * .proto file will be nested inside the single wrapper outer class.
683
+ *
684
+ * @generated from field: optional string java_outer_classname = 8;
685
+ */
686
+ javaOuterClassname?: string;
687
+ /**
688
+ * If enabled, then the Java code generator will generate a separate .java
689
+ * file for each top-level message, enum, and service defined in the .proto
690
+ * file. Thus, these types will *not* be nested inside the wrapper class
691
+ * named by java_outer_classname. However, the wrapper class will still be
692
+ * generated to contain the file's getDescriptor() method as well as any
693
+ * top-level extensions defined in the file.
694
+ *
695
+ * @generated from field: optional bool java_multiple_files = 10 [default = false];
696
+ */
697
+ javaMultipleFiles?: boolean;
698
+ /**
699
+ * This option does nothing.
700
+ *
701
+ * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true];
702
+ * @deprecated
703
+ */
704
+ javaGenerateEqualsAndHash?: boolean;
705
+ /**
706
+ * If set true, then the Java2 code generator will generate code that
707
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
708
+ * byte sequence to a string field.
709
+ * Message reflection will do the same.
710
+ * However, an extension field still accepts non-UTF-8 byte sequences.
711
+ * This option has no effect on when used with the lite runtime.
712
+ *
713
+ * @generated from field: optional bool java_string_check_utf8 = 27 [default = false];
714
+ */
715
+ javaStringCheckUtf8?: boolean;
716
+ /**
717
+ * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
718
+ */
719
+ optimizeFor?: FileOptions_OptimizeMode;
720
+ /**
721
+ * Sets the Go package where structs generated from this .proto will be
722
+ * placed. If omitted, the Go package will be derived from the following:
723
+ * - The basename of the package import path, if provided.
724
+ * - Otherwise, the package statement in the .proto file, if present.
725
+ * - Otherwise, the basename of the .proto file, without extension.
726
+ *
727
+ * @generated from field: optional string go_package = 11;
728
+ */
729
+ goPackage?: string;
730
+ /**
731
+ * Should generic services be generated in each language? "Generic" services
732
+ * are not specific to any particular RPC system. They are generated by the
733
+ * main code generators in each language (without additional plugins).
734
+ * Generic services were the only kind of service generation supported by
735
+ * early versions of google.protobuf.
736
+ *
737
+ * Generic services are now considered deprecated in favor of using plugins
738
+ * that generate code specific to your particular RPC system. Therefore,
739
+ * these default to false. Old code which depends on generic services should
740
+ * explicitly set them to true.
741
+ *
742
+ * @generated from field: optional bool cc_generic_services = 16 [default = false];
743
+ */
744
+ ccGenericServices?: boolean;
745
+ /**
746
+ * @generated from field: optional bool java_generic_services = 17 [default = false];
747
+ */
748
+ javaGenericServices?: boolean;
749
+ /**
750
+ * @generated from field: optional bool py_generic_services = 18 [default = false];
751
+ */
752
+ pyGenericServices?: boolean;
753
+ /**
754
+ * @generated from field: optional bool php_generic_services = 42 [default = false];
755
+ */
756
+ phpGenericServices?: boolean;
757
+ /**
758
+ * Is this file deprecated?
759
+ * Depending on the target platform, this can emit Deprecated annotations
760
+ * for everything in the file, or it will be completely ignored; in the very
761
+ * least, this is a formalization for deprecating files.
762
+ *
763
+ * @generated from field: optional bool deprecated = 23 [default = false];
764
+ */
765
+ deprecated?: boolean;
766
+ /**
767
+ * Enables the use of arenas for the proto messages in this file. This applies
768
+ * only to generated classes for C++.
769
+ *
770
+ * @generated from field: optional bool cc_enable_arenas = 31 [default = true];
771
+ */
772
+ ccEnableArenas?: boolean;
773
+ /**
774
+ * Sets the objective c class prefix which is prepended to all objective c
775
+ * generated classes from this .proto. There is no default.
776
+ *
777
+ * @generated from field: optional string objc_class_prefix = 36;
778
+ */
779
+ objcClassPrefix?: string;
780
+ /**
781
+ * Namespace for generated classes; defaults to the package.
782
+ *
783
+ * @generated from field: optional string csharp_namespace = 37;
784
+ */
785
+ csharpNamespace?: string;
786
+ /**
787
+ * By default Swift generators will take the proto package and CamelCase it
788
+ * replacing '.' with underscore and use that to prefix the types/symbols
789
+ * defined. When this options is provided, they will use this value instead
790
+ * to prefix the types/symbols defined.
791
+ *
792
+ * @generated from field: optional string swift_prefix = 39;
793
+ */
794
+ swiftPrefix?: string;
795
+ /**
796
+ * Sets the php class prefix which is prepended to all php generated classes
797
+ * from this .proto. Default is empty.
798
+ *
799
+ * @generated from field: optional string php_class_prefix = 40;
800
+ */
801
+ phpClassPrefix?: string;
802
+ /**
803
+ * Use this option to change the namespace of php generated classes. Default
804
+ * is empty. When this option is empty, the package name will be used for
805
+ * determining the namespace.
806
+ *
807
+ * @generated from field: optional string php_namespace = 41;
808
+ */
809
+ phpNamespace?: string;
810
+ /**
811
+ * Use this option to change the namespace of php generated metadata classes.
812
+ * Default is empty. When this option is empty, the proto file name will be
813
+ * used for determining the namespace.
814
+ *
815
+ * @generated from field: optional string php_metadata_namespace = 44;
816
+ */
817
+ phpMetadataNamespace?: string;
818
+ /**
819
+ * Use this option to change the package of ruby generated classes. Default
820
+ * is empty. When this option is not set, the package name will be used for
821
+ * determining the ruby package.
822
+ *
823
+ * @generated from field: optional string ruby_package = 45;
824
+ */
825
+ rubyPackage?: string;
826
+ /**
827
+ * The parser stores options it doesn't recognize here.
828
+ * See the documentation for the "Options" section above.
829
+ *
830
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
831
+ */
832
+ uninterpretedOption: UninterpretedOption[];
833
+ constructor(data?: PartialMessage<FileOptions>);
834
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
835
+ static readonly typeName = "google.protobuf.FileOptions";
836
+ static readonly fields: FieldList;
837
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileOptions;
838
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileOptions;
839
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileOptions;
840
+ static equals(a: FileOptions | PlainMessage<FileOptions> | undefined, b: FileOptions | PlainMessage<FileOptions> | undefined): boolean;
1044
841
  }
1045
842
  /**
1046
843
  * Generated classes can be optimized for speed or code size.
@@ -1048,481 +845,397 @@ export declare class FileOptions extends Message<FileOptions> {
1048
845
  * @generated from enum google.protobuf.FileOptions.OptimizeMode
1049
846
  */
1050
847
  export declare enum FileOptions_OptimizeMode {
1051
- /**
1052
- * Generate complete code for parsing, serialization,
1053
- *
1054
- * @generated from enum value: SPEED = 1;
1055
- */
1056
- SPEED = 1,
1057
- /**
1058
- * etc.
1059
- *
1060
- * Use ReflectionOps to implement these methods.
1061
- *
1062
- * @generated from enum value: CODE_SIZE = 2;
1063
- */
1064
- CODE_SIZE = 2,
1065
- /**
1066
- * Generate code using MessageLite and the lite runtime.
1067
- *
1068
- * @generated from enum value: LITE_RUNTIME = 3;
1069
- */
1070
- LITE_RUNTIME = 3,
848
+ /**
849
+ * Generate complete code for parsing, serialization,
850
+ *
851
+ * @generated from enum value: SPEED = 1;
852
+ */
853
+ SPEED = 1,
854
+ /**
855
+ * etc.
856
+ *
857
+ * Use ReflectionOps to implement these methods.
858
+ *
859
+ * @generated from enum value: CODE_SIZE = 2;
860
+ */
861
+ CODE_SIZE = 2,
862
+ /**
863
+ * Generate code using MessageLite and the lite runtime.
864
+ *
865
+ * @generated from enum value: LITE_RUNTIME = 3;
866
+ */
867
+ LITE_RUNTIME = 3
1071
868
  }
1072
869
  /**
1073
870
  * @generated from message google.protobuf.MessageOptions
1074
871
  */
1075
872
  export declare class MessageOptions extends Message<MessageOptions> {
1076
- /**
1077
- * Set true to use the old proto1 MessageSet wire format for extensions.
1078
- * This is provided for backwards-compatibility with the MessageSet wire
1079
- * format. You should not use this for any other reason: It's less
1080
- * efficient, has fewer features, and is more complicated.
1081
- *
1082
- * The message must be defined exactly as follows:
1083
- * message Foo {
1084
- * option message_set_wire_format = true;
1085
- * extensions 4 to max;
1086
- * }
1087
- * Note that the message cannot have any defined fields; MessageSets only
1088
- * have extensions.
1089
- *
1090
- * All extensions of your type must be singular messages; e.g. they cannot
1091
- * be int32s, enums, or repeated messages.
1092
- *
1093
- * Because this is an option, the above two restrictions are not enforced by
1094
- * the protocol compiler.
1095
- *
1096
- * @generated from field: optional bool message_set_wire_format = 1 [default = false];
1097
- */
1098
- messageSetWireFormat?: boolean;
1099
- /**
1100
- * Disables the generation of the standard "descriptor()" accessor, which can
1101
- * conflict with a field of the same name. This is meant to make migration
1102
- * from proto1 easier; new code should avoid fields named "descriptor".
1103
- *
1104
- * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false];
1105
- */
1106
- noStandardDescriptorAccessor?: boolean;
1107
- /**
1108
- * Is this message deprecated?
1109
- * Depending on the target platform, this can emit Deprecated annotations
1110
- * for the message, or it will be completely ignored; in the very least,
1111
- * this is a formalization for deprecating messages.
1112
- *
1113
- * @generated from field: optional bool deprecated = 3 [default = false];
1114
- */
1115
- deprecated?: boolean;
1116
- /**
1117
- * Whether the message is an automatically generated map entry type for the
1118
- * maps field.
1119
- *
1120
- * For maps fields:
1121
- * map<KeyType, ValueType> map_field = 1;
1122
- * The parsed descriptor looks like:
1123
- * message MapFieldEntry {
1124
- * option map_entry = true;
1125
- * optional KeyType key = 1;
1126
- * optional ValueType value = 2;
1127
- * }
1128
- * repeated MapFieldEntry map_field = 1;
1129
- *
1130
- * Implementations may choose not to generate the map_entry=true message, but
1131
- * use a native map in the target language to hold the keys and values.
1132
- * The reflection APIs in such implementations still need to work as
1133
- * if the field is a repeated message field.
1134
- *
1135
- * NOTE: Do not set the option in .proto files. Always use the maps syntax
1136
- * instead. The option should only be implicitly set by the proto compiler
1137
- * parser.
1138
- *
1139
- * @generated from field: optional bool map_entry = 7;
1140
- */
1141
- mapEntry?: boolean;
1142
- /**
1143
- * The parser stores options it doesn't recognize here. See above.
1144
- *
1145
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1146
- */
1147
- uninterpretedOption: UninterpretedOption[];
1148
- constructor(data?: PartialMessage<MessageOptions>);
1149
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1150
- static readonly typeName = "google.protobuf.MessageOptions";
1151
- static readonly fields: FieldList;
1152
- static fromBinary(
1153
- bytes: Uint8Array,
1154
- options?: Partial<BinaryReadOptions>
1155
- ): MessageOptions;
1156
- static fromJson(
1157
- jsonValue: JsonValue,
1158
- options?: Partial<JsonReadOptions>
1159
- ): MessageOptions;
1160
- static fromJsonString(
1161
- jsonString: string,
1162
- options?: Partial<JsonReadOptions>
1163
- ): MessageOptions;
1164
- static equals(
1165
- a: MessageOptions | PlainMessage<MessageOptions> | undefined,
1166
- b: MessageOptions | PlainMessage<MessageOptions> | undefined
1167
- ): boolean;
873
+ /**
874
+ * Set true to use the old proto1 MessageSet wire format for extensions.
875
+ * This is provided for backwards-compatibility with the MessageSet wire
876
+ * format. You should not use this for any other reason: It's less
877
+ * efficient, has fewer features, and is more complicated.
878
+ *
879
+ * The message must be defined exactly as follows:
880
+ * message Foo {
881
+ * option message_set_wire_format = true;
882
+ * extensions 4 to max;
883
+ * }
884
+ * Note that the message cannot have any defined fields; MessageSets only
885
+ * have extensions.
886
+ *
887
+ * All extensions of your type must be singular messages; e.g. they cannot
888
+ * be int32s, enums, or repeated messages.
889
+ *
890
+ * Because this is an option, the above two restrictions are not enforced by
891
+ * the protocol compiler.
892
+ *
893
+ * @generated from field: optional bool message_set_wire_format = 1 [default = false];
894
+ */
895
+ messageSetWireFormat?: boolean;
896
+ /**
897
+ * Disables the generation of the standard "descriptor()" accessor, which can
898
+ * conflict with a field of the same name. This is meant to make migration
899
+ * from proto1 easier; new code should avoid fields named "descriptor".
900
+ *
901
+ * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false];
902
+ */
903
+ noStandardDescriptorAccessor?: boolean;
904
+ /**
905
+ * Is this message deprecated?
906
+ * Depending on the target platform, this can emit Deprecated annotations
907
+ * for the message, or it will be completely ignored; in the very least,
908
+ * this is a formalization for deprecating messages.
909
+ *
910
+ * @generated from field: optional bool deprecated = 3 [default = false];
911
+ */
912
+ deprecated?: boolean;
913
+ /**
914
+ * Whether the message is an automatically generated map entry type for the
915
+ * maps field.
916
+ *
917
+ * For maps fields:
918
+ * map<KeyType, ValueType> map_field = 1;
919
+ * The parsed descriptor looks like:
920
+ * message MapFieldEntry {
921
+ * option map_entry = true;
922
+ * optional KeyType key = 1;
923
+ * optional ValueType value = 2;
924
+ * }
925
+ * repeated MapFieldEntry map_field = 1;
926
+ *
927
+ * Implementations may choose not to generate the map_entry=true message, but
928
+ * use a native map in the target language to hold the keys and values.
929
+ * The reflection APIs in such implementations still need to work as
930
+ * if the field is a repeated message field.
931
+ *
932
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
933
+ * instead. The option should only be implicitly set by the proto compiler
934
+ * parser.
935
+ *
936
+ * @generated from field: optional bool map_entry = 7;
937
+ */
938
+ mapEntry?: boolean;
939
+ /**
940
+ * The parser stores options it doesn't recognize here. See above.
941
+ *
942
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
943
+ */
944
+ uninterpretedOption: UninterpretedOption[];
945
+ constructor(data?: PartialMessage<MessageOptions>);
946
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
947
+ static readonly typeName = "google.protobuf.MessageOptions";
948
+ static readonly fields: FieldList;
949
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageOptions;
950
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageOptions;
951
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageOptions;
952
+ static equals(a: MessageOptions | PlainMessage<MessageOptions> | undefined, b: MessageOptions | PlainMessage<MessageOptions> | undefined): boolean;
1168
953
  }
1169
954
  /**
1170
955
  * @generated from message google.protobuf.FieldOptions
1171
956
  */
1172
957
  export declare class FieldOptions extends Message<FieldOptions> {
1173
- /**
1174
- * The ctype option instructs the C++ code generator to use a different
1175
- * representation of the field than it normally would. See the specific
1176
- * options below. This option is not yet implemented in the open source
1177
- * release -- sorry, we'll try to include it in a future version!
1178
- *
1179
- * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
1180
- */
1181
- ctype?: FieldOptions_CType;
1182
- /**
1183
- * The packed option can be enabled for repeated primitive fields to enable
1184
- * a more efficient representation on the wire. Rather than repeatedly
1185
- * writing the tag and type for each element, the entire array is encoded as
1186
- * a single length-delimited blob. In proto3, only explicit setting it to
1187
- * false will avoid using packed encoding.
1188
- *
1189
- * @generated from field: optional bool packed = 2;
1190
- */
1191
- packed?: boolean;
1192
- /**
1193
- * The jstype option determines the JavaScript type used for values of the
1194
- * field. The option is permitted only for 64 bit integral and fixed types
1195
- * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1196
- * is represented as JavaScript string, which avoids loss of precision that
1197
- * can happen when a large value is converted to a floating point JavaScript.
1198
- * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1199
- * use the JavaScript "number" type. The behavior of the default option
1200
- * JS_NORMAL is implementation dependent.
1201
- *
1202
- * This option is an enum to permit additional types to be added, e.g.
1203
- * goog.math.Integer.
1204
- *
1205
- * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
1206
- */
1207
- jstype?: FieldOptions_JSType;
1208
- /**
1209
- * Should this field be parsed lazily? Lazy applies only to message-type
1210
- * fields. It means that when the outer message is initially parsed, the
1211
- * inner message's contents will not be parsed but instead stored in encoded
1212
- * form. The inner message will actually be parsed when it is first accessed.
1213
- *
1214
- * This is only a hint. Implementations are free to choose whether to use
1215
- * eager or lazy parsing regardless of the value of this option. However,
1216
- * setting this option true suggests that the protocol author believes that
1217
- * using lazy parsing on this field is worth the additional bookkeeping
1218
- * overhead typically needed to implement it.
1219
- *
1220
- * This option does not affect the public interface of any generated code;
1221
- * all method signatures remain the same. Furthermore, thread-safety of the
1222
- * interface is not affected by this option; const methods remain safe to
1223
- * call from multiple threads concurrently, while non-const methods continue
1224
- * to require exclusive access.
1225
- *
1226
- *
1227
- * Note that implementations may choose not to check required fields within
1228
- * a lazy sub-message. That is, calling IsInitialized() on the outer message
1229
- * may return true even if the inner message has missing required fields.
1230
- * This is necessary because otherwise the inner message would have to be
1231
- * parsed in order to perform the check, defeating the purpose of lazy
1232
- * parsing. An implementation which chooses not to check required fields
1233
- * must be consistent about it. That is, for any particular sub-message, the
1234
- * implementation must either *always* check its required fields, or *never*
1235
- * check its required fields, regardless of whether or not the message has
1236
- * been parsed.
1237
- *
1238
- * @generated from field: optional bool lazy = 5 [default = false];
1239
- */
1240
- lazy?: boolean;
1241
- /**
1242
- * Is this field deprecated?
1243
- * Depending on the target platform, this can emit Deprecated annotations
1244
- * for accessors, or it will be completely ignored; in the very least, this
1245
- * is a formalization for deprecating fields.
1246
- *
1247
- * @generated from field: optional bool deprecated = 3 [default = false];
1248
- */
1249
- deprecated?: boolean;
1250
- /**
1251
- * For Google-internal migration only. Do not use.
1252
- *
1253
- * @generated from field: optional bool weak = 10 [default = false];
1254
- */
1255
- weak?: boolean;
1256
- /**
1257
- * The parser stores options it doesn't recognize here. See above.
1258
- *
1259
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1260
- */
1261
- uninterpretedOption: UninterpretedOption[];
1262
- constructor(data?: PartialMessage<FieldOptions>);
1263
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1264
- static readonly typeName = "google.protobuf.FieldOptions";
1265
- static readonly fields: FieldList;
1266
- static fromBinary(
1267
- bytes: Uint8Array,
1268
- options?: Partial<BinaryReadOptions>
1269
- ): FieldOptions;
1270
- static fromJson(
1271
- jsonValue: JsonValue,
1272
- options?: Partial<JsonReadOptions>
1273
- ): FieldOptions;
1274
- static fromJsonString(
1275
- jsonString: string,
1276
- options?: Partial<JsonReadOptions>
1277
- ): FieldOptions;
1278
- static equals(
1279
- a: FieldOptions | PlainMessage<FieldOptions> | undefined,
1280
- b: FieldOptions | PlainMessage<FieldOptions> | undefined
1281
- ): boolean;
958
+ /**
959
+ * The ctype option instructs the C++ code generator to use a different
960
+ * representation of the field than it normally would. See the specific
961
+ * options below. This option is not yet implemented in the open source
962
+ * release -- sorry, we'll try to include it in a future version!
963
+ *
964
+ * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
965
+ */
966
+ ctype?: FieldOptions_CType;
967
+ /**
968
+ * The packed option can be enabled for repeated primitive fields to enable
969
+ * a more efficient representation on the wire. Rather than repeatedly
970
+ * writing the tag and type for each element, the entire array is encoded as
971
+ * a single length-delimited blob. In proto3, only explicit setting it to
972
+ * false will avoid using packed encoding.
973
+ *
974
+ * @generated from field: optional bool packed = 2;
975
+ */
976
+ packed?: boolean;
977
+ /**
978
+ * The jstype option determines the JavaScript type used for values of the
979
+ * field. The option is permitted only for 64 bit integral and fixed types
980
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
981
+ * is represented as JavaScript string, which avoids loss of precision that
982
+ * can happen when a large value is converted to a floating point JavaScript.
983
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
984
+ * use the JavaScript "number" type. The behavior of the default option
985
+ * JS_NORMAL is implementation dependent.
986
+ *
987
+ * This option is an enum to permit additional types to be added, e.g.
988
+ * goog.math.Integer.
989
+ *
990
+ * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
991
+ */
992
+ jstype?: FieldOptions_JSType;
993
+ /**
994
+ * Should this field be parsed lazily? Lazy applies only to message-type
995
+ * fields. It means that when the outer message is initially parsed, the
996
+ * inner message's contents will not be parsed but instead stored in encoded
997
+ * form. The inner message will actually be parsed when it is first accessed.
998
+ *
999
+ * This is only a hint. Implementations are free to choose whether to use
1000
+ * eager or lazy parsing regardless of the value of this option. However,
1001
+ * setting this option true suggests that the protocol author believes that
1002
+ * using lazy parsing on this field is worth the additional bookkeeping
1003
+ * overhead typically needed to implement it.
1004
+ *
1005
+ * This option does not affect the public interface of any generated code;
1006
+ * all method signatures remain the same. Furthermore, thread-safety of the
1007
+ * interface is not affected by this option; const methods remain safe to
1008
+ * call from multiple threads concurrently, while non-const methods continue
1009
+ * to require exclusive access.
1010
+ *
1011
+ *
1012
+ * Note that implementations may choose not to check required fields within
1013
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
1014
+ * may return true even if the inner message has missing required fields.
1015
+ * This is necessary because otherwise the inner message would have to be
1016
+ * parsed in order to perform the check, defeating the purpose of lazy
1017
+ * parsing. An implementation which chooses not to check required fields
1018
+ * must be consistent about it. That is, for any particular sub-message, the
1019
+ * implementation must either *always* check its required fields, or *never*
1020
+ * check its required fields, regardless of whether or not the message has
1021
+ * been parsed.
1022
+ *
1023
+ * @generated from field: optional bool lazy = 5 [default = false];
1024
+ */
1025
+ lazy?: boolean;
1026
+ /**
1027
+ * Is this field deprecated?
1028
+ * Depending on the target platform, this can emit Deprecated annotations
1029
+ * for accessors, or it will be completely ignored; in the very least, this
1030
+ * is a formalization for deprecating fields.
1031
+ *
1032
+ * @generated from field: optional bool deprecated = 3 [default = false];
1033
+ */
1034
+ deprecated?: boolean;
1035
+ /**
1036
+ * For Google-internal migration only. Do not use.
1037
+ *
1038
+ * @generated from field: optional bool weak = 10 [default = false];
1039
+ */
1040
+ weak?: boolean;
1041
+ /**
1042
+ * The parser stores options it doesn't recognize here. See above.
1043
+ *
1044
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1045
+ */
1046
+ uninterpretedOption: UninterpretedOption[];
1047
+ constructor(data?: PartialMessage<FieldOptions>);
1048
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1049
+ static readonly typeName = "google.protobuf.FieldOptions";
1050
+ static readonly fields: FieldList;
1051
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldOptions;
1052
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldOptions;
1053
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldOptions;
1054
+ static equals(a: FieldOptions | PlainMessage<FieldOptions> | undefined, b: FieldOptions | PlainMessage<FieldOptions> | undefined): boolean;
1282
1055
  }
1283
1056
  /**
1284
1057
  * @generated from enum google.protobuf.FieldOptions.CType
1285
1058
  */
1286
1059
  export declare enum FieldOptions_CType {
1287
- /**
1288
- * Default mode.
1289
- *
1290
- * @generated from enum value: STRING = 0;
1291
- */
1292
- STRING = 0,
1293
- /**
1294
- * @generated from enum value: CORD = 1;
1295
- */
1296
- CORD = 1,
1297
- /**
1298
- * @generated from enum value: STRING_PIECE = 2;
1299
- */
1300
- STRING_PIECE = 2,
1060
+ /**
1061
+ * Default mode.
1062
+ *
1063
+ * @generated from enum value: STRING = 0;
1064
+ */
1065
+ STRING = 0,
1066
+ /**
1067
+ * @generated from enum value: CORD = 1;
1068
+ */
1069
+ CORD = 1,
1070
+ /**
1071
+ * @generated from enum value: STRING_PIECE = 2;
1072
+ */
1073
+ STRING_PIECE = 2
1301
1074
  }
1302
1075
  /**
1303
1076
  * @generated from enum google.protobuf.FieldOptions.JSType
1304
1077
  */
1305
1078
  export declare enum FieldOptions_JSType {
1306
- /**
1307
- * Use the default type.
1308
- *
1309
- * @generated from enum value: JS_NORMAL = 0;
1310
- */
1311
- JS_NORMAL = 0,
1312
- /**
1313
- * Use JavaScript strings.
1314
- *
1315
- * @generated from enum value: JS_STRING = 1;
1316
- */
1317
- JS_STRING = 1,
1318
- /**
1319
- * Use JavaScript numbers.
1320
- *
1321
- * @generated from enum value: JS_NUMBER = 2;
1322
- */
1323
- JS_NUMBER = 2,
1079
+ /**
1080
+ * Use the default type.
1081
+ *
1082
+ * @generated from enum value: JS_NORMAL = 0;
1083
+ */
1084
+ JS_NORMAL = 0,
1085
+ /**
1086
+ * Use JavaScript strings.
1087
+ *
1088
+ * @generated from enum value: JS_STRING = 1;
1089
+ */
1090
+ JS_STRING = 1,
1091
+ /**
1092
+ * Use JavaScript numbers.
1093
+ *
1094
+ * @generated from enum value: JS_NUMBER = 2;
1095
+ */
1096
+ JS_NUMBER = 2
1324
1097
  }
1325
1098
  /**
1326
1099
  * @generated from message google.protobuf.OneofOptions
1327
1100
  */
1328
1101
  export declare class OneofOptions extends Message<OneofOptions> {
1329
- /**
1330
- * The parser stores options it doesn't recognize here. See above.
1331
- *
1332
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1333
- */
1334
- uninterpretedOption: UninterpretedOption[];
1335
- constructor(data?: PartialMessage<OneofOptions>);
1336
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1337
- static readonly typeName = "google.protobuf.OneofOptions";
1338
- static readonly fields: FieldList;
1339
- static fromBinary(
1340
- bytes: Uint8Array,
1341
- options?: Partial<BinaryReadOptions>
1342
- ): OneofOptions;
1343
- static fromJson(
1344
- jsonValue: JsonValue,
1345
- options?: Partial<JsonReadOptions>
1346
- ): OneofOptions;
1347
- static fromJsonString(
1348
- jsonString: string,
1349
- options?: Partial<JsonReadOptions>
1350
- ): OneofOptions;
1351
- static equals(
1352
- a: OneofOptions | PlainMessage<OneofOptions> | undefined,
1353
- b: OneofOptions | PlainMessage<OneofOptions> | undefined
1354
- ): boolean;
1102
+ /**
1103
+ * The parser stores options it doesn't recognize here. See above.
1104
+ *
1105
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1106
+ */
1107
+ uninterpretedOption: UninterpretedOption[];
1108
+ constructor(data?: PartialMessage<OneofOptions>);
1109
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1110
+ static readonly typeName = "google.protobuf.OneofOptions";
1111
+ static readonly fields: FieldList;
1112
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofOptions;
1113
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofOptions;
1114
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofOptions;
1115
+ static equals(a: OneofOptions | PlainMessage<OneofOptions> | undefined, b: OneofOptions | PlainMessage<OneofOptions> | undefined): boolean;
1355
1116
  }
1356
1117
  /**
1357
1118
  * @generated from message google.protobuf.EnumOptions
1358
1119
  */
1359
1120
  export declare class EnumOptions extends Message<EnumOptions> {
1360
- /**
1361
- * Set this option to true to allow mapping different tag names to the same
1362
- * value.
1363
- *
1364
- * @generated from field: optional bool allow_alias = 2;
1365
- */
1366
- allowAlias?: boolean;
1367
- /**
1368
- * Is this enum deprecated?
1369
- * Depending on the target platform, this can emit Deprecated annotations
1370
- * for the enum, or it will be completely ignored; in the very least, this
1371
- * is a formalization for deprecating enums.
1372
- *
1373
- * @generated from field: optional bool deprecated = 3 [default = false];
1374
- */
1375
- deprecated?: boolean;
1376
- /**
1377
- * The parser stores options it doesn't recognize here. See above.
1378
- *
1379
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1380
- */
1381
- uninterpretedOption: UninterpretedOption[];
1382
- constructor(data?: PartialMessage<EnumOptions>);
1383
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1384
- static readonly typeName = "google.protobuf.EnumOptions";
1385
- static readonly fields: FieldList;
1386
- static fromBinary(
1387
- bytes: Uint8Array,
1388
- options?: Partial<BinaryReadOptions>
1389
- ): EnumOptions;
1390
- static fromJson(
1391
- jsonValue: JsonValue,
1392
- options?: Partial<JsonReadOptions>
1393
- ): EnumOptions;
1394
- static fromJsonString(
1395
- jsonString: string,
1396
- options?: Partial<JsonReadOptions>
1397
- ): EnumOptions;
1398
- static equals(
1399
- a: EnumOptions | PlainMessage<EnumOptions> | undefined,
1400
- b: EnumOptions | PlainMessage<EnumOptions> | undefined
1401
- ): boolean;
1121
+ /**
1122
+ * Set this option to true to allow mapping different tag names to the same
1123
+ * value.
1124
+ *
1125
+ * @generated from field: optional bool allow_alias = 2;
1126
+ */
1127
+ allowAlias?: boolean;
1128
+ /**
1129
+ * Is this enum deprecated?
1130
+ * Depending on the target platform, this can emit Deprecated annotations
1131
+ * for the enum, or it will be completely ignored; in the very least, this
1132
+ * is a formalization for deprecating enums.
1133
+ *
1134
+ * @generated from field: optional bool deprecated = 3 [default = false];
1135
+ */
1136
+ deprecated?: boolean;
1137
+ /**
1138
+ * The parser stores options it doesn't recognize here. See above.
1139
+ *
1140
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1141
+ */
1142
+ uninterpretedOption: UninterpretedOption[];
1143
+ constructor(data?: PartialMessage<EnumOptions>);
1144
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1145
+ static readonly typeName = "google.protobuf.EnumOptions";
1146
+ static readonly fields: FieldList;
1147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumOptions;
1148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumOptions;
1149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumOptions;
1150
+ static equals(a: EnumOptions | PlainMessage<EnumOptions> | undefined, b: EnumOptions | PlainMessage<EnumOptions> | undefined): boolean;
1402
1151
  }
1403
1152
  /**
1404
1153
  * @generated from message google.protobuf.EnumValueOptions
1405
1154
  */
1406
1155
  export declare class EnumValueOptions extends Message<EnumValueOptions> {
1407
- /**
1408
- * Is this enum value deprecated?
1409
- * Depending on the target platform, this can emit Deprecated annotations
1410
- * for the enum value, or it will be completely ignored; in the very least,
1411
- * this is a formalization for deprecating enum values.
1412
- *
1413
- * @generated from field: optional bool deprecated = 1 [default = false];
1414
- */
1415
- deprecated?: boolean;
1416
- /**
1417
- * The parser stores options it doesn't recognize here. See above.
1418
- *
1419
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1420
- */
1421
- uninterpretedOption: UninterpretedOption[];
1422
- constructor(data?: PartialMessage<EnumValueOptions>);
1423
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1424
- static readonly typeName = "google.protobuf.EnumValueOptions";
1425
- static readonly fields: FieldList;
1426
- static fromBinary(
1427
- bytes: Uint8Array,
1428
- options?: Partial<BinaryReadOptions>
1429
- ): EnumValueOptions;
1430
- static fromJson(
1431
- jsonValue: JsonValue,
1432
- options?: Partial<JsonReadOptions>
1433
- ): EnumValueOptions;
1434
- static fromJsonString(
1435
- jsonString: string,
1436
- options?: Partial<JsonReadOptions>
1437
- ): EnumValueOptions;
1438
- static equals(
1439
- a: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined,
1440
- b: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined
1441
- ): boolean;
1156
+ /**
1157
+ * Is this enum value deprecated?
1158
+ * Depending on the target platform, this can emit Deprecated annotations
1159
+ * for the enum value, or it will be completely ignored; in the very least,
1160
+ * this is a formalization for deprecating enum values.
1161
+ *
1162
+ * @generated from field: optional bool deprecated = 1 [default = false];
1163
+ */
1164
+ deprecated?: boolean;
1165
+ /**
1166
+ * The parser stores options it doesn't recognize here. See above.
1167
+ *
1168
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1169
+ */
1170
+ uninterpretedOption: UninterpretedOption[];
1171
+ constructor(data?: PartialMessage<EnumValueOptions>);
1172
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1173
+ static readonly typeName = "google.protobuf.EnumValueOptions";
1174
+ static readonly fields: FieldList;
1175
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueOptions;
1176
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValueOptions;
1177
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValueOptions;
1178
+ static equals(a: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined, b: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined): boolean;
1442
1179
  }
1443
1180
  /**
1444
1181
  * @generated from message google.protobuf.ServiceOptions
1445
1182
  */
1446
1183
  export declare class ServiceOptions extends Message<ServiceOptions> {
1447
- /**
1448
- * Is this service deprecated?
1449
- * Depending on the target platform, this can emit Deprecated annotations
1450
- * for the service, or it will be completely ignored; in the very least,
1451
- * this is a formalization for deprecating services.
1452
- *
1453
- * @generated from field: optional bool deprecated = 33 [default = false];
1454
- */
1455
- deprecated?: boolean;
1456
- /**
1457
- * The parser stores options it doesn't recognize here. See above.
1458
- *
1459
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1460
- */
1461
- uninterpretedOption: UninterpretedOption[];
1462
- constructor(data?: PartialMessage<ServiceOptions>);
1463
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1464
- static readonly typeName = "google.protobuf.ServiceOptions";
1465
- static readonly fields: FieldList;
1466
- static fromBinary(
1467
- bytes: Uint8Array,
1468
- options?: Partial<BinaryReadOptions>
1469
- ): ServiceOptions;
1470
- static fromJson(
1471
- jsonValue: JsonValue,
1472
- options?: Partial<JsonReadOptions>
1473
- ): ServiceOptions;
1474
- static fromJsonString(
1475
- jsonString: string,
1476
- options?: Partial<JsonReadOptions>
1477
- ): ServiceOptions;
1478
- static equals(
1479
- a: ServiceOptions | PlainMessage<ServiceOptions> | undefined,
1480
- b: ServiceOptions | PlainMessage<ServiceOptions> | undefined
1481
- ): boolean;
1184
+ /**
1185
+ * Is this service deprecated?
1186
+ * Depending on the target platform, this can emit Deprecated annotations
1187
+ * for the service, or it will be completely ignored; in the very least,
1188
+ * this is a formalization for deprecating services.
1189
+ *
1190
+ * @generated from field: optional bool deprecated = 33 [default = false];
1191
+ */
1192
+ deprecated?: boolean;
1193
+ /**
1194
+ * The parser stores options it doesn't recognize here. See above.
1195
+ *
1196
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1197
+ */
1198
+ uninterpretedOption: UninterpretedOption[];
1199
+ constructor(data?: PartialMessage<ServiceOptions>);
1200
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1201
+ static readonly typeName = "google.protobuf.ServiceOptions";
1202
+ static readonly fields: FieldList;
1203
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceOptions;
1204
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceOptions;
1205
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceOptions;
1206
+ static equals(a: ServiceOptions | PlainMessage<ServiceOptions> | undefined, b: ServiceOptions | PlainMessage<ServiceOptions> | undefined): boolean;
1482
1207
  }
1483
1208
  /**
1484
1209
  * @generated from message google.protobuf.MethodOptions
1485
1210
  */
1486
1211
  export declare class MethodOptions extends Message<MethodOptions> {
1487
- /**
1488
- * Is this method deprecated?
1489
- * Depending on the target platform, this can emit Deprecated annotations
1490
- * for the method, or it will be completely ignored; in the very least,
1491
- * this is a formalization for deprecating methods.
1492
- *
1493
- * @generated from field: optional bool deprecated = 33 [default = false];
1494
- */
1495
- deprecated?: boolean;
1496
- /**
1497
- * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
1498
- */
1499
- idempotencyLevel?: MethodOptions_IdempotencyLevel;
1500
- /**
1501
- * The parser stores options it doesn't recognize here. See above.
1502
- *
1503
- * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1504
- */
1505
- uninterpretedOption: UninterpretedOption[];
1506
- constructor(data?: PartialMessage<MethodOptions>);
1507
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1508
- static readonly typeName = "google.protobuf.MethodOptions";
1509
- static readonly fields: FieldList;
1510
- static fromBinary(
1511
- bytes: Uint8Array,
1512
- options?: Partial<BinaryReadOptions>
1513
- ): MethodOptions;
1514
- static fromJson(
1515
- jsonValue: JsonValue,
1516
- options?: Partial<JsonReadOptions>
1517
- ): MethodOptions;
1518
- static fromJsonString(
1519
- jsonString: string,
1520
- options?: Partial<JsonReadOptions>
1521
- ): MethodOptions;
1522
- static equals(
1523
- a: MethodOptions | PlainMessage<MethodOptions> | undefined,
1524
- b: MethodOptions | PlainMessage<MethodOptions> | undefined
1525
- ): boolean;
1212
+ /**
1213
+ * Is this method deprecated?
1214
+ * Depending on the target platform, this can emit Deprecated annotations
1215
+ * for the method, or it will be completely ignored; in the very least,
1216
+ * this is a formalization for deprecating methods.
1217
+ *
1218
+ * @generated from field: optional bool deprecated = 33 [default = false];
1219
+ */
1220
+ deprecated?: boolean;
1221
+ /**
1222
+ * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
1223
+ */
1224
+ idempotencyLevel?: MethodOptions_IdempotencyLevel;
1225
+ /**
1226
+ * The parser stores options it doesn't recognize here. See above.
1227
+ *
1228
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1229
+ */
1230
+ uninterpretedOption: UninterpretedOption[];
1231
+ constructor(data?: PartialMessage<MethodOptions>);
1232
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1233
+ static readonly typeName = "google.protobuf.MethodOptions";
1234
+ static readonly fields: FieldList;
1235
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodOptions;
1236
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MethodOptions;
1237
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MethodOptions;
1238
+ static equals(a: MethodOptions | PlainMessage<MethodOptions> | undefined, b: MethodOptions | PlainMessage<MethodOptions> | undefined): boolean;
1526
1239
  }
1527
1240
  /**
1528
1241
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
@@ -1532,22 +1245,22 @@ export declare class MethodOptions extends Message<MethodOptions> {
1532
1245
  * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel
1533
1246
  */
1534
1247
  export declare enum MethodOptions_IdempotencyLevel {
1535
- /**
1536
- * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
1537
- */
1538
- IDEMPOTENCY_UNKNOWN = 0,
1539
- /**
1540
- * implies idempotent
1541
- *
1542
- * @generated from enum value: NO_SIDE_EFFECTS = 1;
1543
- */
1544
- NO_SIDE_EFFECTS = 1,
1545
- /**
1546
- * idempotent, but may have side effects
1547
- *
1548
- * @generated from enum value: IDEMPOTENT = 2;
1549
- */
1550
- IDEMPOTENT = 2,
1248
+ /**
1249
+ * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
1250
+ */
1251
+ IDEMPOTENCY_UNKNOWN = 0,
1252
+ /**
1253
+ * implies idempotent
1254
+ *
1255
+ * @generated from enum value: NO_SIDE_EFFECTS = 1;
1256
+ */
1257
+ NO_SIDE_EFFECTS = 1,
1258
+ /**
1259
+ * idempotent, but may have side effects
1260
+ *
1261
+ * @generated from enum value: IDEMPOTENT = 2;
1262
+ */
1263
+ IDEMPOTENT = 2
1551
1264
  }
1552
1265
  /**
1553
1266
  * A message representing a option the parser does not recognize. This only
@@ -1560,57 +1273,45 @@ export declare enum MethodOptions_IdempotencyLevel {
1560
1273
  * @generated from message google.protobuf.UninterpretedOption
1561
1274
  */
1562
1275
  export declare class UninterpretedOption extends Message<UninterpretedOption> {
1563
- /**
1564
- * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1565
- */
1566
- name: UninterpretedOption_NamePart[];
1567
- /**
1568
- * The value of the uninterpreted option, in whatever type the tokenizer
1569
- * identified it as during parsing. Exactly one of these should be set.
1570
- *
1571
- * @generated from field: optional string identifier_value = 3;
1572
- */
1573
- identifierValue?: string;
1574
- /**
1575
- * @generated from field: optional uint64 positive_int_value = 4;
1576
- */
1577
- positiveIntValue?: bigint;
1578
- /**
1579
- * @generated from field: optional int64 negative_int_value = 5;
1580
- */
1581
- negativeIntValue?: bigint;
1582
- /**
1583
- * @generated from field: optional double double_value = 6;
1584
- */
1585
- doubleValue?: number;
1586
- /**
1587
- * @generated from field: optional bytes string_value = 7;
1588
- */
1589
- stringValue?: Uint8Array;
1590
- /**
1591
- * @generated from field: optional string aggregate_value = 8;
1592
- */
1593
- aggregateValue?: string;
1594
- constructor(data?: PartialMessage<UninterpretedOption>);
1595
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1596
- static readonly typeName = "google.protobuf.UninterpretedOption";
1597
- static readonly fields: FieldList;
1598
- static fromBinary(
1599
- bytes: Uint8Array,
1600
- options?: Partial<BinaryReadOptions>
1601
- ): UninterpretedOption;
1602
- static fromJson(
1603
- jsonValue: JsonValue,
1604
- options?: Partial<JsonReadOptions>
1605
- ): UninterpretedOption;
1606
- static fromJsonString(
1607
- jsonString: string,
1608
- options?: Partial<JsonReadOptions>
1609
- ): UninterpretedOption;
1610
- static equals(
1611
- a: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined,
1612
- b: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined
1613
- ): boolean;
1276
+ /**
1277
+ * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1278
+ */
1279
+ name: UninterpretedOption_NamePart[];
1280
+ /**
1281
+ * The value of the uninterpreted option, in whatever type the tokenizer
1282
+ * identified it as during parsing. Exactly one of these should be set.
1283
+ *
1284
+ * @generated from field: optional string identifier_value = 3;
1285
+ */
1286
+ identifierValue?: string;
1287
+ /**
1288
+ * @generated from field: optional uint64 positive_int_value = 4;
1289
+ */
1290
+ positiveIntValue?: bigint;
1291
+ /**
1292
+ * @generated from field: optional int64 negative_int_value = 5;
1293
+ */
1294
+ negativeIntValue?: bigint;
1295
+ /**
1296
+ * @generated from field: optional double double_value = 6;
1297
+ */
1298
+ doubleValue?: number;
1299
+ /**
1300
+ * @generated from field: optional bytes string_value = 7;
1301
+ */
1302
+ stringValue?: Uint8Array;
1303
+ /**
1304
+ * @generated from field: optional string aggregate_value = 8;
1305
+ */
1306
+ aggregateValue?: string;
1307
+ constructor(data?: PartialMessage<UninterpretedOption>);
1308
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1309
+ static readonly typeName = "google.protobuf.UninterpretedOption";
1310
+ static readonly fields: FieldList;
1311
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption;
1312
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UninterpretedOption;
1313
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UninterpretedOption;
1314
+ static equals(a: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined, b: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined): boolean;
1614
1315
  }
1615
1316
  /**
1616
1317
  * The name of the uninterpreted option. Each string represents a segment in
@@ -1622,40 +1323,22 @@ export declare class UninterpretedOption extends Message<UninterpretedOption> {
1622
1323
  * @generated from message google.protobuf.UninterpretedOption.NamePart
1623
1324
  */
1624
1325
  export declare class UninterpretedOption_NamePart extends Message<UninterpretedOption_NamePart> {
1625
- /**
1626
- * @generated from field: required string name_part = 1;
1627
- */
1628
- namePart?: string;
1629
- /**
1630
- * @generated from field: required bool is_extension = 2;
1631
- */
1632
- isExtension?: boolean;
1633
- constructor(data?: PartialMessage<UninterpretedOption_NamePart>);
1634
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1635
- static readonly typeName = "google.protobuf.UninterpretedOption.NamePart";
1636
- static readonly fields: FieldList;
1637
- static fromBinary(
1638
- bytes: Uint8Array,
1639
- options?: Partial<BinaryReadOptions>
1640
- ): UninterpretedOption_NamePart;
1641
- static fromJson(
1642
- jsonValue: JsonValue,
1643
- options?: Partial<JsonReadOptions>
1644
- ): UninterpretedOption_NamePart;
1645
- static fromJsonString(
1646
- jsonString: string,
1647
- options?: Partial<JsonReadOptions>
1648
- ): UninterpretedOption_NamePart;
1649
- static equals(
1650
- a:
1651
- | UninterpretedOption_NamePart
1652
- | PlainMessage<UninterpretedOption_NamePart>
1653
- | undefined,
1654
- b:
1655
- | UninterpretedOption_NamePart
1656
- | PlainMessage<UninterpretedOption_NamePart>
1657
- | undefined
1658
- ): boolean;
1326
+ /**
1327
+ * @generated from field: required string name_part = 1;
1328
+ */
1329
+ namePart?: string;
1330
+ /**
1331
+ * @generated from field: required bool is_extension = 2;
1332
+ */
1333
+ isExtension?: boolean;
1334
+ constructor(data?: PartialMessage<UninterpretedOption_NamePart>);
1335
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1336
+ static readonly typeName = "google.protobuf.UninterpretedOption.NamePart";
1337
+ static readonly fields: FieldList;
1338
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption_NamePart;
1339
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UninterpretedOption_NamePart;
1340
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UninterpretedOption_NamePart;
1341
+ static equals(a: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined, b: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined): boolean;
1659
1342
  }
1660
1343
  /**
1661
1344
  * Encapsulates information about the original source file from which a
@@ -1664,203 +1347,173 @@ export declare class UninterpretedOption_NamePart extends Message<UninterpretedO
1664
1347
  * @generated from message google.protobuf.SourceCodeInfo
1665
1348
  */
1666
1349
  export declare class SourceCodeInfo extends Message<SourceCodeInfo> {
1667
- /**
1668
- * A Location identifies a piece of source code in a .proto file which
1669
- * corresponds to a particular definition. This information is intended
1670
- * to be useful to IDEs, code indexers, documentation generators, and similar
1671
- * tools.
1672
- *
1673
- * For example, say we have a file like:
1674
- * message Foo {
1675
- * optional string foo = 1;
1676
- * }
1677
- * Let's look at just the field definition:
1678
- * optional string foo = 1;
1679
- * ^ ^^ ^^ ^ ^^^
1680
- * a bc de f ghi
1681
- * We have the following locations:
1682
- * span path represents
1683
- * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1684
- * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1685
- * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1686
- * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1687
- * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1688
- *
1689
- * Notes:
1690
- * - A location may refer to a repeated field itself (i.e. not to any
1691
- * particular index within it). This is used whenever a set of elements are
1692
- * logically enclosed in a single code segment. For example, an entire
1693
- * extend block (possibly containing multiple extension definitions) will
1694
- * have an outer location whose path refers to the "extensions" repeated
1695
- * field without an index.
1696
- * - Multiple locations may have the same path. This happens when a single
1697
- * logical declaration is spread out across multiple places. The most
1698
- * obvious example is the "extend" block again -- there may be multiple
1699
- * extend blocks in the same scope, each of which will have the same path.
1700
- * - A location's span is not always a subset of its parent's span. For
1701
- * example, the "extendee" of an extension declaration appears at the
1702
- * beginning of the "extend" block and is shared by all extensions within
1703
- * the block.
1704
- * - Just because a location's span is a subset of some other location's span
1705
- * does not mean that it is a descendant. For example, a "group" defines
1706
- * both a type and a field in a single declaration. Thus, the locations
1707
- * corresponding to the type and field and their components will overlap.
1708
- * - Code which tries to interpret locations should probably be designed to
1709
- * ignore those that it doesn't understand, as more types of locations could
1710
- * be recorded in the future.
1711
- *
1712
- * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1713
- */
1714
- location: SourceCodeInfo_Location[];
1715
- constructor(data?: PartialMessage<SourceCodeInfo>);
1716
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1717
- static readonly typeName = "google.protobuf.SourceCodeInfo";
1718
- static readonly fields: FieldList;
1719
- static fromBinary(
1720
- bytes: Uint8Array,
1721
- options?: Partial<BinaryReadOptions>
1722
- ): SourceCodeInfo;
1723
- static fromJson(
1724
- jsonValue: JsonValue,
1725
- options?: Partial<JsonReadOptions>
1726
- ): SourceCodeInfo;
1727
- static fromJsonString(
1728
- jsonString: string,
1729
- options?: Partial<JsonReadOptions>
1730
- ): SourceCodeInfo;
1731
- static equals(
1732
- a: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined,
1733
- b: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined
1734
- ): boolean;
1350
+ /**
1351
+ * A Location identifies a piece of source code in a .proto file which
1352
+ * corresponds to a particular definition. This information is intended
1353
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1354
+ * tools.
1355
+ *
1356
+ * For example, say we have a file like:
1357
+ * message Foo {
1358
+ * optional string foo = 1;
1359
+ * }
1360
+ * Let's look at just the field definition:
1361
+ * optional string foo = 1;
1362
+ * ^ ^^ ^^ ^ ^^^
1363
+ * a bc de f ghi
1364
+ * We have the following locations:
1365
+ * span path represents
1366
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1367
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1368
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1369
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1370
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1371
+ *
1372
+ * Notes:
1373
+ * - A location may refer to a repeated field itself (i.e. not to any
1374
+ * particular index within it). This is used whenever a set of elements are
1375
+ * logically enclosed in a single code segment. For example, an entire
1376
+ * extend block (possibly containing multiple extension definitions) will
1377
+ * have an outer location whose path refers to the "extensions" repeated
1378
+ * field without an index.
1379
+ * - Multiple locations may have the same path. This happens when a single
1380
+ * logical declaration is spread out across multiple places. The most
1381
+ * obvious example is the "extend" block again -- there may be multiple
1382
+ * extend blocks in the same scope, each of which will have the same path.
1383
+ * - A location's span is not always a subset of its parent's span. For
1384
+ * example, the "extendee" of an extension declaration appears at the
1385
+ * beginning of the "extend" block and is shared by all extensions within
1386
+ * the block.
1387
+ * - Just because a location's span is a subset of some other location's span
1388
+ * does not mean that it is a descendant. For example, a "group" defines
1389
+ * both a type and a field in a single declaration. Thus, the locations
1390
+ * corresponding to the type and field and their components will overlap.
1391
+ * - Code which tries to interpret locations should probably be designed to
1392
+ * ignore those that it doesn't understand, as more types of locations could
1393
+ * be recorded in the future.
1394
+ *
1395
+ * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1396
+ */
1397
+ location: SourceCodeInfo_Location[];
1398
+ constructor(data?: PartialMessage<SourceCodeInfo>);
1399
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1400
+ static readonly typeName = "google.protobuf.SourceCodeInfo";
1401
+ static readonly fields: FieldList;
1402
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo;
1403
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceCodeInfo;
1404
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceCodeInfo;
1405
+ static equals(a: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined, b: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined): boolean;
1735
1406
  }
1736
1407
  /**
1737
1408
  * @generated from message google.protobuf.SourceCodeInfo.Location
1738
1409
  */
1739
1410
  export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Location> {
1740
- /**
1741
- * Identifies which part of the FileDescriptorProto was defined at this
1742
- * location.
1743
- *
1744
- * Each element is a field number or an index. They form a path from
1745
- * the root FileDescriptorProto to the place where the definition. For
1746
- * example, this path:
1747
- * [ 4, 3, 2, 7, 1 ]
1748
- * refers to:
1749
- * file.message_type(3) // 4, 3
1750
- * .field(7) // 2, 7
1751
- * .name() // 1
1752
- * This is because FileDescriptorProto.message_type has field number 4:
1753
- * repeated DescriptorProto message_type = 4;
1754
- * and DescriptorProto.field has field number 2:
1755
- * repeated FieldDescriptorProto field = 2;
1756
- * and FieldDescriptorProto.name has field number 1:
1757
- * optional string name = 1;
1758
- *
1759
- * Thus, the above path gives the location of a field name. If we removed
1760
- * the last element:
1761
- * [ 4, 3, 2, 7 ]
1762
- * this path refers to the whole field declaration (from the beginning
1763
- * of the label to the terminating semicolon).
1764
- *
1765
- * @generated from field: repeated int32 path = 1 [packed = true];
1766
- */
1767
- path: number[];
1768
- /**
1769
- * Always has exactly three or four elements: start line, start column,
1770
- * end line (optional, otherwise assumed same as start line), end column.
1771
- * These are packed into a single field for efficiency. Note that line
1772
- * and column numbers are zero-based -- typically you will want to add
1773
- * 1 to each before displaying to a user.
1774
- *
1775
- * @generated from field: repeated int32 span = 2 [packed = true];
1776
- */
1777
- span: number[];
1778
- /**
1779
- * If this SourceCodeInfo represents a complete declaration, these are any
1780
- * comments appearing before and after the declaration which appear to be
1781
- * attached to the declaration.
1782
- *
1783
- * A series of line comments appearing on consecutive lines, with no other
1784
- * tokens appearing on those lines, will be treated as a single comment.
1785
- *
1786
- * leading_detached_comments will keep paragraphs of comments that appear
1787
- * before (but not connected to) the current element. Each paragraph,
1788
- * separated by empty lines, will be one comment element in the repeated
1789
- * field.
1790
- *
1791
- * Only the comment content is provided; comment markers (e.g. //) are
1792
- * stripped out. For block comments, leading whitespace and an asterisk
1793
- * will be stripped from the beginning of each line other than the first.
1794
- * Newlines are included in the output.
1795
- *
1796
- * Examples:
1797
- *
1798
- * optional int32 foo = 1; // Comment attached to foo.
1799
- * // Comment attached to bar.
1800
- * optional int32 bar = 2;
1801
- *
1802
- * optional string baz = 3;
1803
- * // Comment attached to baz.
1804
- * // Another line attached to baz.
1805
- *
1806
- * // Comment attached to qux.
1807
- * //
1808
- * // Another line attached to qux.
1809
- * optional double qux = 4;
1810
- *
1811
- * // Detached comment for corge. This is not leading or trailing comments
1812
- * // to qux or corge because there are blank lines separating it from
1813
- * // both.
1814
- *
1815
- * // Detached comment for corge paragraph 2.
1816
- *
1817
- * optional string corge = 5;
1818
- * /* Block comment attached
1819
- * * to corge. Leading asterisks
1820
- * * will be removed. *\/
1821
- * /* Block comment attached to
1822
- * * grault. *\/
1823
- * optional int32 grault = 6;
1824
- *
1825
- * // ignored detached comments.
1826
- *
1827
- * @generated from field: optional string leading_comments = 3;
1828
- */
1829
- leadingComments?: string;
1830
- /**
1831
- * @generated from field: optional string trailing_comments = 4;
1832
- */
1833
- trailingComments?: string;
1834
- /**
1835
- * @generated from field: repeated string leading_detached_comments = 6;
1836
- */
1837
- leadingDetachedComments: string[];
1838
- constructor(data?: PartialMessage<SourceCodeInfo_Location>);
1839
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1840
- static readonly typeName = "google.protobuf.SourceCodeInfo.Location";
1841
- static readonly fields: FieldList;
1842
- static fromBinary(
1843
- bytes: Uint8Array,
1844
- options?: Partial<BinaryReadOptions>
1845
- ): SourceCodeInfo_Location;
1846
- static fromJson(
1847
- jsonValue: JsonValue,
1848
- options?: Partial<JsonReadOptions>
1849
- ): SourceCodeInfo_Location;
1850
- static fromJsonString(
1851
- jsonString: string,
1852
- options?: Partial<JsonReadOptions>
1853
- ): SourceCodeInfo_Location;
1854
- static equals(
1855
- a:
1856
- | SourceCodeInfo_Location
1857
- | PlainMessage<SourceCodeInfo_Location>
1858
- | undefined,
1859
- b:
1860
- | SourceCodeInfo_Location
1861
- | PlainMessage<SourceCodeInfo_Location>
1862
- | undefined
1863
- ): boolean;
1411
+ /**
1412
+ * Identifies which part of the FileDescriptorProto was defined at this
1413
+ * location.
1414
+ *
1415
+ * Each element is a field number or an index. They form a path from
1416
+ * the root FileDescriptorProto to the place where the definition. For
1417
+ * example, this path:
1418
+ * [ 4, 3, 2, 7, 1 ]
1419
+ * refers to:
1420
+ * file.message_type(3) // 4, 3
1421
+ * .field(7) // 2, 7
1422
+ * .name() // 1
1423
+ * This is because FileDescriptorProto.message_type has field number 4:
1424
+ * repeated DescriptorProto message_type = 4;
1425
+ * and DescriptorProto.field has field number 2:
1426
+ * repeated FieldDescriptorProto field = 2;
1427
+ * and FieldDescriptorProto.name has field number 1:
1428
+ * optional string name = 1;
1429
+ *
1430
+ * Thus, the above path gives the location of a field name. If we removed
1431
+ * the last element:
1432
+ * [ 4, 3, 2, 7 ]
1433
+ * this path refers to the whole field declaration (from the beginning
1434
+ * of the label to the terminating semicolon).
1435
+ *
1436
+ * @generated from field: repeated int32 path = 1 [packed = true];
1437
+ */
1438
+ path: number[];
1439
+ /**
1440
+ * Always has exactly three or four elements: start line, start column,
1441
+ * end line (optional, otherwise assumed same as start line), end column.
1442
+ * These are packed into a single field for efficiency. Note that line
1443
+ * and column numbers are zero-based -- typically you will want to add
1444
+ * 1 to each before displaying to a user.
1445
+ *
1446
+ * @generated from field: repeated int32 span = 2 [packed = true];
1447
+ */
1448
+ span: number[];
1449
+ /**
1450
+ * If this SourceCodeInfo represents a complete declaration, these are any
1451
+ * comments appearing before and after the declaration which appear to be
1452
+ * attached to the declaration.
1453
+ *
1454
+ * A series of line comments appearing on consecutive lines, with no other
1455
+ * tokens appearing on those lines, will be treated as a single comment.
1456
+ *
1457
+ * leading_detached_comments will keep paragraphs of comments that appear
1458
+ * before (but not connected to) the current element. Each paragraph,
1459
+ * separated by empty lines, will be one comment element in the repeated
1460
+ * field.
1461
+ *
1462
+ * Only the comment content is provided; comment markers (e.g. //) are
1463
+ * stripped out. For block comments, leading whitespace and an asterisk
1464
+ * will be stripped from the beginning of each line other than the first.
1465
+ * Newlines are included in the output.
1466
+ *
1467
+ * Examples:
1468
+ *
1469
+ * optional int32 foo = 1; // Comment attached to foo.
1470
+ * // Comment attached to bar.
1471
+ * optional int32 bar = 2;
1472
+ *
1473
+ * optional string baz = 3;
1474
+ * // Comment attached to baz.
1475
+ * // Another line attached to baz.
1476
+ *
1477
+ * // Comment attached to qux.
1478
+ * //
1479
+ * // Another line attached to qux.
1480
+ * optional double qux = 4;
1481
+ *
1482
+ * // Detached comment for corge. This is not leading or trailing comments
1483
+ * // to qux or corge because there are blank lines separating it from
1484
+ * // both.
1485
+ *
1486
+ * // Detached comment for corge paragraph 2.
1487
+ *
1488
+ * optional string corge = 5;
1489
+ * /* Block comment attached
1490
+ * * to corge. Leading asterisks
1491
+ * * will be removed. *\/
1492
+ * /* Block comment attached to
1493
+ * * grault. *\/
1494
+ * optional int32 grault = 6;
1495
+ *
1496
+ * // ignored detached comments.
1497
+ *
1498
+ * @generated from field: optional string leading_comments = 3;
1499
+ */
1500
+ leadingComments?: string;
1501
+ /**
1502
+ * @generated from field: optional string trailing_comments = 4;
1503
+ */
1504
+ trailingComments?: string;
1505
+ /**
1506
+ * @generated from field: repeated string leading_detached_comments = 6;
1507
+ */
1508
+ leadingDetachedComments: string[];
1509
+ constructor(data?: PartialMessage<SourceCodeInfo_Location>);
1510
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1511
+ static readonly typeName = "google.protobuf.SourceCodeInfo.Location";
1512
+ static readonly fields: FieldList;
1513
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo_Location;
1514
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceCodeInfo_Location;
1515
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceCodeInfo_Location;
1516
+ static equals(a: SourceCodeInfo_Location | PlainMessage<SourceCodeInfo_Location> | undefined, b: SourceCodeInfo_Location | PlainMessage<SourceCodeInfo_Location> | undefined): boolean;
1864
1517
  }
1865
1518
  /**
1866
1519
  * Describes the relationship between generated code and its original source
@@ -1870,90 +1523,60 @@ export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Loca
1870
1523
  * @generated from message google.protobuf.GeneratedCodeInfo
1871
1524
  */
1872
1525
  export declare class GeneratedCodeInfo extends Message<GeneratedCodeInfo> {
1873
- /**
1874
- * An Annotation connects some span of text in generated code to an element
1875
- * of its generating .proto file.
1876
- *
1877
- * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1878
- */
1879
- annotation: GeneratedCodeInfo_Annotation[];
1880
- constructor(data?: PartialMessage<GeneratedCodeInfo>);
1881
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1882
- static readonly typeName = "google.protobuf.GeneratedCodeInfo";
1883
- static readonly fields: FieldList;
1884
- static fromBinary(
1885
- bytes: Uint8Array,
1886
- options?: Partial<BinaryReadOptions>
1887
- ): GeneratedCodeInfo;
1888
- static fromJson(
1889
- jsonValue: JsonValue,
1890
- options?: Partial<JsonReadOptions>
1891
- ): GeneratedCodeInfo;
1892
- static fromJsonString(
1893
- jsonString: string,
1894
- options?: Partial<JsonReadOptions>
1895
- ): GeneratedCodeInfo;
1896
- static equals(
1897
- a: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined,
1898
- b: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined
1899
- ): boolean;
1526
+ /**
1527
+ * An Annotation connects some span of text in generated code to an element
1528
+ * of its generating .proto file.
1529
+ *
1530
+ * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1531
+ */
1532
+ annotation: GeneratedCodeInfo_Annotation[];
1533
+ constructor(data?: PartialMessage<GeneratedCodeInfo>);
1534
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1535
+ static readonly typeName = "google.protobuf.GeneratedCodeInfo";
1536
+ static readonly fields: FieldList;
1537
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo;
1538
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GeneratedCodeInfo;
1539
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo;
1540
+ static equals(a: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined, b: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined): boolean;
1900
1541
  }
1901
1542
  /**
1902
1543
  * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
1903
1544
  */
1904
1545
  export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeInfo_Annotation> {
1905
- /**
1906
- * Identifies the element in the original source .proto file. This field
1907
- * is formatted the same as SourceCodeInfo.Location.path.
1908
- *
1909
- * @generated from field: repeated int32 path = 1 [packed = true];
1910
- */
1911
- path: number[];
1912
- /**
1913
- * Identifies the filesystem path to the original source .proto.
1914
- *
1915
- * @generated from field: optional string source_file = 2;
1916
- */
1917
- sourceFile?: string;
1918
- /**
1919
- * Identifies the starting offset in bytes in the generated code
1920
- * that relates to the identified object.
1921
- *
1922
- * @generated from field: optional int32 begin = 3;
1923
- */
1924
- begin?: number;
1925
- /**
1926
- * Identifies the ending offset in bytes in the generated code that
1927
- * relates to the identified offset. The end offset should be one past
1928
- * the last relevant byte (so the length of the text = end - begin).
1929
- *
1930
- * @generated from field: optional int32 end = 4;
1931
- */
1932
- end?: number;
1933
- constructor(data?: PartialMessage<GeneratedCodeInfo_Annotation>);
1934
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1935
- static readonly typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
1936
- static readonly fields: FieldList;
1937
- static fromBinary(
1938
- bytes: Uint8Array,
1939
- options?: Partial<BinaryReadOptions>
1940
- ): GeneratedCodeInfo_Annotation;
1941
- static fromJson(
1942
- jsonValue: JsonValue,
1943
- options?: Partial<JsonReadOptions>
1944
- ): GeneratedCodeInfo_Annotation;
1945
- static fromJsonString(
1946
- jsonString: string,
1947
- options?: Partial<JsonReadOptions>
1948
- ): GeneratedCodeInfo_Annotation;
1949
- static equals(
1950
- a:
1951
- | GeneratedCodeInfo_Annotation
1952
- | PlainMessage<GeneratedCodeInfo_Annotation>
1953
- | undefined,
1954
- b:
1955
- | GeneratedCodeInfo_Annotation
1956
- | PlainMessage<GeneratedCodeInfo_Annotation>
1957
- | undefined
1958
- ): boolean;
1546
+ /**
1547
+ * Identifies the element in the original source .proto file. This field
1548
+ * is formatted the same as SourceCodeInfo.Location.path.
1549
+ *
1550
+ * @generated from field: repeated int32 path = 1 [packed = true];
1551
+ */
1552
+ path: number[];
1553
+ /**
1554
+ * Identifies the filesystem path to the original source .proto.
1555
+ *
1556
+ * @generated from field: optional string source_file = 2;
1557
+ */
1558
+ sourceFile?: string;
1559
+ /**
1560
+ * Identifies the starting offset in bytes in the generated code
1561
+ * that relates to the identified object.
1562
+ *
1563
+ * @generated from field: optional int32 begin = 3;
1564
+ */
1565
+ begin?: number;
1566
+ /**
1567
+ * Identifies the ending offset in bytes in the generated code that
1568
+ * relates to the identified offset. The end offset should be one past
1569
+ * the last relevant byte (so the length of the text = end - begin).
1570
+ *
1571
+ * @generated from field: optional int32 end = 4;
1572
+ */
1573
+ end?: number;
1574
+ constructor(data?: PartialMessage<GeneratedCodeInfo_Annotation>);
1575
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
1576
+ static readonly typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
1577
+ static readonly fields: FieldList;
1578
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo_Annotation;
1579
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
1580
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
1581
+ static equals(a: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined, b: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined): boolean;
1959
1582
  }