@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
  import { SourceContext } from "./source_context_pb.js";
11
4
  import { Any } from "./any_pb.js";
@@ -15,18 +8,18 @@ import { Any } from "./any_pb.js";
15
8
  * @generated from enum google.protobuf.Syntax
16
9
  */
17
10
  export declare enum Syntax {
18
- /**
19
- * Syntax `proto2`.
20
- *
21
- * @generated from enum value: SYNTAX_PROTO2 = 0;
22
- */
23
- PROTO2 = 0,
24
- /**
25
- * Syntax `proto3`.
26
- *
27
- * @generated from enum value: SYNTAX_PROTO3 = 1;
28
- */
29
- PROTO3 = 1,
11
+ /**
12
+ * Syntax `proto2`.
13
+ *
14
+ * @generated from enum value: SYNTAX_PROTO2 = 0;
15
+ */
16
+ PROTO2 = 0,
17
+ /**
18
+ * Syntax `proto3`.
19
+ *
20
+ * @generated from enum value: SYNTAX_PROTO3 = 1;
21
+ */
22
+ PROTO3 = 1
30
23
  }
31
24
  /**
32
25
  * A protocol buffer message type.
@@ -34,62 +27,50 @@ export declare enum Syntax {
34
27
  * @generated from message google.protobuf.Type
35
28
  */
36
29
  export declare class Type extends Message<Type> {
37
- /**
38
- * The fully qualified message name.
39
- *
40
- * @generated from field: string name = 1;
41
- */
42
- name: string;
43
- /**
44
- * The list of fields.
45
- *
46
- * @generated from field: repeated google.protobuf.Field fields = 2;
47
- */
48
- fields: Field[];
49
- /**
50
- * The list of types appearing in `oneof` definitions in this type.
51
- *
52
- * @generated from field: repeated string oneofs = 3;
53
- */
54
- oneofs: string[];
55
- /**
56
- * The protocol buffer options.
57
- *
58
- * @generated from field: repeated google.protobuf.Option options = 4;
59
- */
60
- options: Option[];
61
- /**
62
- * The source context.
63
- *
64
- * @generated from field: google.protobuf.SourceContext source_context = 5;
65
- */
66
- sourceContext?: SourceContext;
67
- /**
68
- * The source syntax.
69
- *
70
- * @generated from field: google.protobuf.Syntax syntax = 6;
71
- */
72
- syntax: Syntax;
73
- constructor(data?: PartialMessage<Type>);
74
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
75
- static readonly typeName = "google.protobuf.Type";
76
- static readonly fields: FieldList;
77
- static fromBinary(
78
- bytes: Uint8Array,
79
- options?: Partial<BinaryReadOptions>
80
- ): Type;
81
- static fromJson(
82
- jsonValue: JsonValue,
83
- options?: Partial<JsonReadOptions>
84
- ): Type;
85
- static fromJsonString(
86
- jsonString: string,
87
- options?: Partial<JsonReadOptions>
88
- ): Type;
89
- static equals(
90
- a: Type | PlainMessage<Type> | undefined,
91
- b: Type | PlainMessage<Type> | undefined
92
- ): boolean;
30
+ /**
31
+ * The fully qualified message name.
32
+ *
33
+ * @generated from field: string name = 1;
34
+ */
35
+ name: string;
36
+ /**
37
+ * The list of fields.
38
+ *
39
+ * @generated from field: repeated google.protobuf.Field fields = 2;
40
+ */
41
+ fields: Field[];
42
+ /**
43
+ * The list of types appearing in `oneof` definitions in this type.
44
+ *
45
+ * @generated from field: repeated string oneofs = 3;
46
+ */
47
+ oneofs: string[];
48
+ /**
49
+ * The protocol buffer options.
50
+ *
51
+ * @generated from field: repeated google.protobuf.Option options = 4;
52
+ */
53
+ options: Option[];
54
+ /**
55
+ * The source context.
56
+ *
57
+ * @generated from field: google.protobuf.SourceContext source_context = 5;
58
+ */
59
+ sourceContext?: SourceContext;
60
+ /**
61
+ * The source syntax.
62
+ *
63
+ * @generated from field: google.protobuf.Syntax syntax = 6;
64
+ */
65
+ syntax: Syntax;
66
+ constructor(data?: PartialMessage<Type>);
67
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
68
+ static readonly typeName = "google.protobuf.Type";
69
+ static readonly fields: FieldList;
70
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Type;
71
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Type;
72
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Type;
73
+ static equals(a: Type | PlainMessage<Type> | undefined, b: Type | PlainMessage<Type> | undefined): boolean;
93
74
  }
94
75
  /**
95
76
  * A single field of a message type.
@@ -97,88 +78,76 @@ export declare class Type extends Message<Type> {
97
78
  * @generated from message google.protobuf.Field
98
79
  */
99
80
  export declare class Field extends Message<Field> {
100
- /**
101
- * The field type.
102
- *
103
- * @generated from field: google.protobuf.Field.Kind kind = 1;
104
- */
105
- kind: Field_Kind;
106
- /**
107
- * The field cardinality.
108
- *
109
- * @generated from field: google.protobuf.Field.Cardinality cardinality = 2;
110
- */
111
- cardinality: Field_Cardinality;
112
- /**
113
- * The field number.
114
- *
115
- * @generated from field: int32 number = 3;
116
- */
117
- number: number;
118
- /**
119
- * The field name.
120
- *
121
- * @generated from field: string name = 4;
122
- */
123
- name: string;
124
- /**
125
- * The field type URL, without the scheme, for message or enumeration
126
- * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
127
- *
128
- * @generated from field: string type_url = 6;
129
- */
130
- typeUrl: string;
131
- /**
132
- * The index of the field type in `Type.oneofs`, for message or enumeration
133
- * types. The first type has index 1; zero means the type is not in the list.
134
- *
135
- * @generated from field: int32 oneof_index = 7;
136
- */
137
- oneofIndex: number;
138
- /**
139
- * Whether to use alternative packed wire representation.
140
- *
141
- * @generated from field: bool packed = 8;
142
- */
143
- packed: boolean;
144
- /**
145
- * The protocol buffer options.
146
- *
147
- * @generated from field: repeated google.protobuf.Option options = 9;
148
- */
149
- options: Option[];
150
- /**
151
- * The field JSON name.
152
- *
153
- * @generated from field: string json_name = 10;
154
- */
155
- jsonName: string;
156
- /**
157
- * The string value of the default value of this field. Proto2 syntax only.
158
- *
159
- * @generated from field: string default_value = 11;
160
- */
161
- defaultValue: string;
162
- constructor(data?: PartialMessage<Field>);
163
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
164
- static readonly typeName = "google.protobuf.Field";
165
- static readonly fields: FieldList;
166
- static fromBinary(
167
- bytes: Uint8Array,
168
- options?: Partial<BinaryReadOptions>
169
- ): Field;
170
- static fromJson(
171
- jsonValue: JsonValue,
172
- options?: Partial<JsonReadOptions>
173
- ): Field;
174
- static fromJsonString(
175
- jsonString: string,
176
- options?: Partial<JsonReadOptions>
177
- ): Field;
178
- static equals(
179
- a: Field | PlainMessage<Field> | undefined,
180
- b: Field | PlainMessage<Field> | undefined
181
- ): boolean;
81
+ /**
82
+ * The field type.
83
+ *
84
+ * @generated from field: google.protobuf.Field.Kind kind = 1;
85
+ */
86
+ kind: Field_Kind;
87
+ /**
88
+ * The field cardinality.
89
+ *
90
+ * @generated from field: google.protobuf.Field.Cardinality cardinality = 2;
91
+ */
92
+ cardinality: Field_Cardinality;
93
+ /**
94
+ * The field number.
95
+ *
96
+ * @generated from field: int32 number = 3;
97
+ */
98
+ number: number;
99
+ /**
100
+ * The field name.
101
+ *
102
+ * @generated from field: string name = 4;
103
+ */
104
+ name: string;
105
+ /**
106
+ * The field type URL, without the scheme, for message or enumeration
107
+ * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
108
+ *
109
+ * @generated from field: string type_url = 6;
110
+ */
111
+ typeUrl: string;
112
+ /**
113
+ * The index of the field type in `Type.oneofs`, for message or enumeration
114
+ * types. The first type has index 1; zero means the type is not in the list.
115
+ *
116
+ * @generated from field: int32 oneof_index = 7;
117
+ */
118
+ oneofIndex: number;
119
+ /**
120
+ * Whether to use alternative packed wire representation.
121
+ *
122
+ * @generated from field: bool packed = 8;
123
+ */
124
+ packed: boolean;
125
+ /**
126
+ * The protocol buffer options.
127
+ *
128
+ * @generated from field: repeated google.protobuf.Option options = 9;
129
+ */
130
+ options: Option[];
131
+ /**
132
+ * The field JSON name.
133
+ *
134
+ * @generated from field: string json_name = 10;
135
+ */
136
+ jsonName: string;
137
+ /**
138
+ * The string value of the default value of this field. Proto2 syntax only.
139
+ *
140
+ * @generated from field: string default_value = 11;
141
+ */
142
+ defaultValue: string;
143
+ constructor(data?: PartialMessage<Field>);
144
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
145
+ static readonly typeName = "google.protobuf.Field";
146
+ static readonly fields: FieldList;
147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Field;
148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Field;
149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Field;
150
+ static equals(a: Field | PlainMessage<Field> | undefined, b: Field | PlainMessage<Field> | undefined): boolean;
182
151
  }
183
152
  /**
184
153
  * Basic field types.
@@ -186,120 +155,120 @@ export declare class Field extends Message<Field> {
186
155
  * @generated from enum google.protobuf.Field.Kind
187
156
  */
188
157
  export declare enum Field_Kind {
189
- /**
190
- * Field type unknown.
191
- *
192
- * @generated from enum value: TYPE_UNKNOWN = 0;
193
- */
194
- TYPE_UNKNOWN = 0,
195
- /**
196
- * Field type double.
197
- *
198
- * @generated from enum value: TYPE_DOUBLE = 1;
199
- */
200
- TYPE_DOUBLE = 1,
201
- /**
202
- * Field type float.
203
- *
204
- * @generated from enum value: TYPE_FLOAT = 2;
205
- */
206
- TYPE_FLOAT = 2,
207
- /**
208
- * Field type int64.
209
- *
210
- * @generated from enum value: TYPE_INT64 = 3;
211
- */
212
- TYPE_INT64 = 3,
213
- /**
214
- * Field type uint64.
215
- *
216
- * @generated from enum value: TYPE_UINT64 = 4;
217
- */
218
- TYPE_UINT64 = 4,
219
- /**
220
- * Field type int32.
221
- *
222
- * @generated from enum value: TYPE_INT32 = 5;
223
- */
224
- TYPE_INT32 = 5,
225
- /**
226
- * Field type fixed64.
227
- *
228
- * @generated from enum value: TYPE_FIXED64 = 6;
229
- */
230
- TYPE_FIXED64 = 6,
231
- /**
232
- * Field type fixed32.
233
- *
234
- * @generated from enum value: TYPE_FIXED32 = 7;
235
- */
236
- TYPE_FIXED32 = 7,
237
- /**
238
- * Field type bool.
239
- *
240
- * @generated from enum value: TYPE_BOOL = 8;
241
- */
242
- TYPE_BOOL = 8,
243
- /**
244
- * Field type string.
245
- *
246
- * @generated from enum value: TYPE_STRING = 9;
247
- */
248
- TYPE_STRING = 9,
249
- /**
250
- * Field type group. Proto2 syntax only, and deprecated.
251
- *
252
- * @generated from enum value: TYPE_GROUP = 10;
253
- */
254
- TYPE_GROUP = 10,
255
- /**
256
- * Field type message.
257
- *
258
- * @generated from enum value: TYPE_MESSAGE = 11;
259
- */
260
- TYPE_MESSAGE = 11,
261
- /**
262
- * Field type bytes.
263
- *
264
- * @generated from enum value: TYPE_BYTES = 12;
265
- */
266
- TYPE_BYTES = 12,
267
- /**
268
- * Field type uint32.
269
- *
270
- * @generated from enum value: TYPE_UINT32 = 13;
271
- */
272
- TYPE_UINT32 = 13,
273
- /**
274
- * Field type enum.
275
- *
276
- * @generated from enum value: TYPE_ENUM = 14;
277
- */
278
- TYPE_ENUM = 14,
279
- /**
280
- * Field type sfixed32.
281
- *
282
- * @generated from enum value: TYPE_SFIXED32 = 15;
283
- */
284
- TYPE_SFIXED32 = 15,
285
- /**
286
- * Field type sfixed64.
287
- *
288
- * @generated from enum value: TYPE_SFIXED64 = 16;
289
- */
290
- TYPE_SFIXED64 = 16,
291
- /**
292
- * Field type sint32.
293
- *
294
- * @generated from enum value: TYPE_SINT32 = 17;
295
- */
296
- TYPE_SINT32 = 17,
297
- /**
298
- * Field type sint64.
299
- *
300
- * @generated from enum value: TYPE_SINT64 = 18;
301
- */
302
- TYPE_SINT64 = 18,
158
+ /**
159
+ * Field type unknown.
160
+ *
161
+ * @generated from enum value: TYPE_UNKNOWN = 0;
162
+ */
163
+ TYPE_UNKNOWN = 0,
164
+ /**
165
+ * Field type double.
166
+ *
167
+ * @generated from enum value: TYPE_DOUBLE = 1;
168
+ */
169
+ TYPE_DOUBLE = 1,
170
+ /**
171
+ * Field type float.
172
+ *
173
+ * @generated from enum value: TYPE_FLOAT = 2;
174
+ */
175
+ TYPE_FLOAT = 2,
176
+ /**
177
+ * Field type int64.
178
+ *
179
+ * @generated from enum value: TYPE_INT64 = 3;
180
+ */
181
+ TYPE_INT64 = 3,
182
+ /**
183
+ * Field type uint64.
184
+ *
185
+ * @generated from enum value: TYPE_UINT64 = 4;
186
+ */
187
+ TYPE_UINT64 = 4,
188
+ /**
189
+ * Field type int32.
190
+ *
191
+ * @generated from enum value: TYPE_INT32 = 5;
192
+ */
193
+ TYPE_INT32 = 5,
194
+ /**
195
+ * Field type fixed64.
196
+ *
197
+ * @generated from enum value: TYPE_FIXED64 = 6;
198
+ */
199
+ TYPE_FIXED64 = 6,
200
+ /**
201
+ * Field type fixed32.
202
+ *
203
+ * @generated from enum value: TYPE_FIXED32 = 7;
204
+ */
205
+ TYPE_FIXED32 = 7,
206
+ /**
207
+ * Field type bool.
208
+ *
209
+ * @generated from enum value: TYPE_BOOL = 8;
210
+ */
211
+ TYPE_BOOL = 8,
212
+ /**
213
+ * Field type string.
214
+ *
215
+ * @generated from enum value: TYPE_STRING = 9;
216
+ */
217
+ TYPE_STRING = 9,
218
+ /**
219
+ * Field type group. Proto2 syntax only, and deprecated.
220
+ *
221
+ * @generated from enum value: TYPE_GROUP = 10;
222
+ */
223
+ TYPE_GROUP = 10,
224
+ /**
225
+ * Field type message.
226
+ *
227
+ * @generated from enum value: TYPE_MESSAGE = 11;
228
+ */
229
+ TYPE_MESSAGE = 11,
230
+ /**
231
+ * Field type bytes.
232
+ *
233
+ * @generated from enum value: TYPE_BYTES = 12;
234
+ */
235
+ TYPE_BYTES = 12,
236
+ /**
237
+ * Field type uint32.
238
+ *
239
+ * @generated from enum value: TYPE_UINT32 = 13;
240
+ */
241
+ TYPE_UINT32 = 13,
242
+ /**
243
+ * Field type enum.
244
+ *
245
+ * @generated from enum value: TYPE_ENUM = 14;
246
+ */
247
+ TYPE_ENUM = 14,
248
+ /**
249
+ * Field type sfixed32.
250
+ *
251
+ * @generated from enum value: TYPE_SFIXED32 = 15;
252
+ */
253
+ TYPE_SFIXED32 = 15,
254
+ /**
255
+ * Field type sfixed64.
256
+ *
257
+ * @generated from enum value: TYPE_SFIXED64 = 16;
258
+ */
259
+ TYPE_SFIXED64 = 16,
260
+ /**
261
+ * Field type sint32.
262
+ *
263
+ * @generated from enum value: TYPE_SINT32 = 17;
264
+ */
265
+ TYPE_SINT32 = 17,
266
+ /**
267
+ * Field type sint64.
268
+ *
269
+ * @generated from enum value: TYPE_SINT64 = 18;
270
+ */
271
+ TYPE_SINT64 = 18
303
272
  }
304
273
  /**
305
274
  * Whether a field is optional, required, or repeated.
@@ -307,30 +276,30 @@ export declare enum Field_Kind {
307
276
  * @generated from enum google.protobuf.Field.Cardinality
308
277
  */
309
278
  export declare enum Field_Cardinality {
310
- /**
311
- * For fields with unknown cardinality.
312
- *
313
- * @generated from enum value: CARDINALITY_UNKNOWN = 0;
314
- */
315
- UNKNOWN = 0,
316
- /**
317
- * For optional fields.
318
- *
319
- * @generated from enum value: CARDINALITY_OPTIONAL = 1;
320
- */
321
- OPTIONAL = 1,
322
- /**
323
- * For required fields. Proto2 syntax only.
324
- *
325
- * @generated from enum value: CARDINALITY_REQUIRED = 2;
326
- */
327
- REQUIRED = 2,
328
- /**
329
- * For repeated fields.
330
- *
331
- * @generated from enum value: CARDINALITY_REPEATED = 3;
332
- */
333
- REPEATED = 3,
279
+ /**
280
+ * For fields with unknown cardinality.
281
+ *
282
+ * @generated from enum value: CARDINALITY_UNKNOWN = 0;
283
+ */
284
+ UNKNOWN = 0,
285
+ /**
286
+ * For optional fields.
287
+ *
288
+ * @generated from enum value: CARDINALITY_OPTIONAL = 1;
289
+ */
290
+ OPTIONAL = 1,
291
+ /**
292
+ * For required fields. Proto2 syntax only.
293
+ *
294
+ * @generated from enum value: CARDINALITY_REQUIRED = 2;
295
+ */
296
+ REQUIRED = 2,
297
+ /**
298
+ * For repeated fields.
299
+ *
300
+ * @generated from enum value: CARDINALITY_REPEATED = 3;
301
+ */
302
+ REPEATED = 3
334
303
  }
335
304
  /**
336
305
  * Enum type definition.
@@ -338,56 +307,44 @@ export declare enum Field_Cardinality {
338
307
  * @generated from message google.protobuf.Enum
339
308
  */
340
309
  export declare class Enum extends Message<Enum> {
341
- /**
342
- * Enum type name.
343
- *
344
- * @generated from field: string name = 1;
345
- */
346
- name: string;
347
- /**
348
- * Enum value definitions.
349
- *
350
- * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2;
351
- */
352
- enumvalue: EnumValue[];
353
- /**
354
- * Protocol buffer options.
355
- *
356
- * @generated from field: repeated google.protobuf.Option options = 3;
357
- */
358
- options: Option[];
359
- /**
360
- * The source context.
361
- *
362
- * @generated from field: google.protobuf.SourceContext source_context = 4;
363
- */
364
- sourceContext?: SourceContext;
365
- /**
366
- * The source syntax.
367
- *
368
- * @generated from field: google.protobuf.Syntax syntax = 5;
369
- */
370
- syntax: Syntax;
371
- constructor(data?: PartialMessage<Enum>);
372
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
373
- static readonly typeName = "google.protobuf.Enum";
374
- static readonly fields: FieldList;
375
- static fromBinary(
376
- bytes: Uint8Array,
377
- options?: Partial<BinaryReadOptions>
378
- ): Enum;
379
- static fromJson(
380
- jsonValue: JsonValue,
381
- options?: Partial<JsonReadOptions>
382
- ): Enum;
383
- static fromJsonString(
384
- jsonString: string,
385
- options?: Partial<JsonReadOptions>
386
- ): Enum;
387
- static equals(
388
- a: Enum | PlainMessage<Enum> | undefined,
389
- b: Enum | PlainMessage<Enum> | undefined
390
- ): boolean;
310
+ /**
311
+ * Enum type name.
312
+ *
313
+ * @generated from field: string name = 1;
314
+ */
315
+ name: string;
316
+ /**
317
+ * Enum value definitions.
318
+ *
319
+ * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2;
320
+ */
321
+ enumvalue: EnumValue[];
322
+ /**
323
+ * Protocol buffer options.
324
+ *
325
+ * @generated from field: repeated google.protobuf.Option options = 3;
326
+ */
327
+ options: Option[];
328
+ /**
329
+ * The source context.
330
+ *
331
+ * @generated from field: google.protobuf.SourceContext source_context = 4;
332
+ */
333
+ sourceContext?: SourceContext;
334
+ /**
335
+ * The source syntax.
336
+ *
337
+ * @generated from field: google.protobuf.Syntax syntax = 5;
338
+ */
339
+ syntax: Syntax;
340
+ constructor(data?: PartialMessage<Enum>);
341
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
342
+ static readonly typeName = "google.protobuf.Enum";
343
+ static readonly fields: FieldList;
344
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Enum;
345
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Enum;
346
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Enum;
347
+ static equals(a: Enum | PlainMessage<Enum> | undefined, b: Enum | PlainMessage<Enum> | undefined): boolean;
391
348
  }
392
349
  /**
393
350
  * Enum value definition.
@@ -395,44 +352,32 @@ export declare class Enum extends Message<Enum> {
395
352
  * @generated from message google.protobuf.EnumValue
396
353
  */
397
354
  export declare class EnumValue extends Message<EnumValue> {
398
- /**
399
- * Enum value name.
400
- *
401
- * @generated from field: string name = 1;
402
- */
403
- name: string;
404
- /**
405
- * Enum value number.
406
- *
407
- * @generated from field: int32 number = 2;
408
- */
409
- number: number;
410
- /**
411
- * Protocol buffer options.
412
- *
413
- * @generated from field: repeated google.protobuf.Option options = 3;
414
- */
415
- options: Option[];
416
- constructor(data?: PartialMessage<EnumValue>);
417
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
418
- static readonly typeName = "google.protobuf.EnumValue";
419
- static readonly fields: FieldList;
420
- static fromBinary(
421
- bytes: Uint8Array,
422
- options?: Partial<BinaryReadOptions>
423
- ): EnumValue;
424
- static fromJson(
425
- jsonValue: JsonValue,
426
- options?: Partial<JsonReadOptions>
427
- ): EnumValue;
428
- static fromJsonString(
429
- jsonString: string,
430
- options?: Partial<JsonReadOptions>
431
- ): EnumValue;
432
- static equals(
433
- a: EnumValue | PlainMessage<EnumValue> | undefined,
434
- b: EnumValue | PlainMessage<EnumValue> | undefined
435
- ): boolean;
355
+ /**
356
+ * Enum value name.
357
+ *
358
+ * @generated from field: string name = 1;
359
+ */
360
+ name: string;
361
+ /**
362
+ * Enum value number.
363
+ *
364
+ * @generated from field: int32 number = 2;
365
+ */
366
+ number: number;
367
+ /**
368
+ * Protocol buffer options.
369
+ *
370
+ * @generated from field: repeated google.protobuf.Option options = 3;
371
+ */
372
+ options: Option[];
373
+ constructor(data?: PartialMessage<EnumValue>);
374
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
375
+ static readonly typeName = "google.protobuf.EnumValue";
376
+ static readonly fields: FieldList;
377
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValue;
378
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValue;
379
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValue;
380
+ static equals(a: EnumValue | PlainMessage<EnumValue> | undefined, b: EnumValue | PlainMessage<EnumValue> | undefined): boolean;
436
381
  }
437
382
  /**
438
383
  * A protocol buffer option, which can be attached to a message, field,
@@ -441,42 +386,30 @@ export declare class EnumValue extends Message<EnumValue> {
441
386
  * @generated from message google.protobuf.Option
442
387
  */
443
388
  export declare class Option extends Message<Option> {
444
- /**
445
- * The option's name. For protobuf built-in options (options defined in
446
- * descriptor.proto), this is the short name. For example, `"map_entry"`.
447
- * For custom options, it should be the fully-qualified name. For example,
448
- * `"google.api.http"`.
449
- *
450
- * @generated from field: string name = 1;
451
- */
452
- name: string;
453
- /**
454
- * The option's value packed in an Any message. If the value is a primitive,
455
- * the corresponding wrapper type defined in google/protobuf/wrappers.proto
456
- * should be used. If the value is an enum, it should be stored as an int32
457
- * value using the google.protobuf.Int32Value type.
458
- *
459
- * @generated from field: google.protobuf.Any value = 2;
460
- */
461
- value?: Any;
462
- constructor(data?: PartialMessage<Option>);
463
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
464
- static readonly typeName = "google.protobuf.Option";
465
- static readonly fields: FieldList;
466
- static fromBinary(
467
- bytes: Uint8Array,
468
- options?: Partial<BinaryReadOptions>
469
- ): Option;
470
- static fromJson(
471
- jsonValue: JsonValue,
472
- options?: Partial<JsonReadOptions>
473
- ): Option;
474
- static fromJsonString(
475
- jsonString: string,
476
- options?: Partial<JsonReadOptions>
477
- ): Option;
478
- static equals(
479
- a: Option | PlainMessage<Option> | undefined,
480
- b: Option | PlainMessage<Option> | undefined
481
- ): boolean;
389
+ /**
390
+ * The option's name. For protobuf built-in options (options defined in
391
+ * descriptor.proto), this is the short name. For example, `"map_entry"`.
392
+ * For custom options, it should be the fully-qualified name. For example,
393
+ * `"google.api.http"`.
394
+ *
395
+ * @generated from field: string name = 1;
396
+ */
397
+ name: string;
398
+ /**
399
+ * The option's value packed in an Any message. If the value is a primitive,
400
+ * the corresponding wrapper type defined in google/protobuf/wrappers.proto
401
+ * should be used. If the value is an enum, it should be stored as an int32
402
+ * value using the google.protobuf.Int32Value type.
403
+ *
404
+ * @generated from field: google.protobuf.Any value = 2;
405
+ */
406
+ value?: Any;
407
+ constructor(data?: PartialMessage<Option>);
408
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
409
+ static readonly typeName = "google.protobuf.Option";
410
+ static readonly fields: FieldList;
411
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Option;
412
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Option;
413
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Option;
414
+ static equals(a: Option | PlainMessage<Option> | undefined, b: Option | PlainMessage<Option> | undefined): boolean;
482
415
  }