@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,12 +1,4 @@
1
- import type {
2
- BinaryReadOptions,
3
- FieldList,
4
- JsonReadOptions,
5
- JsonValue,
6
- JsonWriteOptions,
7
- PartialMessage,
8
- PlainMessage,
9
- } from "../../index.js";
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, JsonWriteOptions, PartialMessage, PlainMessage } from "../../index.js";
10
2
  import { Message } from "../../index.js";
11
3
  /**
12
4
  * Wrapper message for `double`.
@@ -16,38 +8,26 @@ import { Message } from "../../index.js";
16
8
  * @generated from message google.protobuf.DoubleValue
17
9
  */
18
10
  export declare class DoubleValue extends Message<DoubleValue> {
19
- /**
20
- * The double value.
21
- *
22
- * @generated from field: double value = 1;
23
- */
24
- value: number;
25
- constructor(data?: PartialMessage<DoubleValue>);
26
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
27
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
28
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
29
- static readonly typeName = "google.protobuf.DoubleValue";
30
- static readonly fields: FieldList;
31
- static readonly fieldWrapper: {
32
- wrapField(value: number | DoubleValue): DoubleValue;
33
- unwrapField(value: DoubleValue): number;
34
- };
35
- static fromBinary(
36
- bytes: Uint8Array,
37
- options?: Partial<BinaryReadOptions>
38
- ): DoubleValue;
39
- static fromJson(
40
- jsonValue: JsonValue,
41
- options?: Partial<JsonReadOptions>
42
- ): DoubleValue;
43
- static fromJsonString(
44
- jsonString: string,
45
- options?: Partial<JsonReadOptions>
46
- ): DoubleValue;
47
- static equals(
48
- a: DoubleValue | PlainMessage<DoubleValue> | undefined,
49
- b: DoubleValue | PlainMessage<DoubleValue> | undefined
50
- ): boolean;
11
+ /**
12
+ * The double value.
13
+ *
14
+ * @generated from field: double value = 1;
15
+ */
16
+ value: number;
17
+ constructor(data?: PartialMessage<DoubleValue>);
18
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
19
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
20
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
21
+ static readonly typeName = "google.protobuf.DoubleValue";
22
+ static readonly fields: FieldList;
23
+ static readonly fieldWrapper: {
24
+ wrapField(value: number | DoubleValue): DoubleValue;
25
+ unwrapField(value: DoubleValue): number;
26
+ };
27
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DoubleValue;
28
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DoubleValue;
29
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DoubleValue;
30
+ static equals(a: DoubleValue | PlainMessage<DoubleValue> | undefined, b: DoubleValue | PlainMessage<DoubleValue> | undefined): boolean;
51
31
  }
52
32
  /**
53
33
  * Wrapper message for `float`.
@@ -57,38 +37,26 @@ export declare class DoubleValue extends Message<DoubleValue> {
57
37
  * @generated from message google.protobuf.FloatValue
58
38
  */
59
39
  export declare class FloatValue extends Message<FloatValue> {
60
- /**
61
- * The float value.
62
- *
63
- * @generated from field: float value = 1;
64
- */
65
- value: number;
66
- constructor(data?: PartialMessage<FloatValue>);
67
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
68
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
69
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
70
- static readonly typeName = "google.protobuf.FloatValue";
71
- static readonly fields: FieldList;
72
- static readonly fieldWrapper: {
73
- wrapField(value: number | FloatValue): FloatValue;
74
- unwrapField(value: FloatValue): number;
75
- };
76
- static fromBinary(
77
- bytes: Uint8Array,
78
- options?: Partial<BinaryReadOptions>
79
- ): FloatValue;
80
- static fromJson(
81
- jsonValue: JsonValue,
82
- options?: Partial<JsonReadOptions>
83
- ): FloatValue;
84
- static fromJsonString(
85
- jsonString: string,
86
- options?: Partial<JsonReadOptions>
87
- ): FloatValue;
88
- static equals(
89
- a: FloatValue | PlainMessage<FloatValue> | undefined,
90
- b: FloatValue | PlainMessage<FloatValue> | undefined
91
- ): boolean;
40
+ /**
41
+ * The float value.
42
+ *
43
+ * @generated from field: float value = 1;
44
+ */
45
+ value: number;
46
+ constructor(data?: PartialMessage<FloatValue>);
47
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
48
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
49
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
50
+ static readonly typeName = "google.protobuf.FloatValue";
51
+ static readonly fields: FieldList;
52
+ static readonly fieldWrapper: {
53
+ wrapField(value: number | FloatValue): FloatValue;
54
+ unwrapField(value: FloatValue): number;
55
+ };
56
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FloatValue;
57
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FloatValue;
58
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FloatValue;
59
+ static equals(a: FloatValue | PlainMessage<FloatValue> | undefined, b: FloatValue | PlainMessage<FloatValue> | undefined): boolean;
92
60
  }
93
61
  /**
94
62
  * Wrapper message for `int64`.
@@ -98,38 +66,26 @@ export declare class FloatValue extends Message<FloatValue> {
98
66
  * @generated from message google.protobuf.Int64Value
99
67
  */
100
68
  export declare class Int64Value extends Message<Int64Value> {
101
- /**
102
- * The int64 value.
103
- *
104
- * @generated from field: int64 value = 1;
105
- */
106
- value: bigint;
107
- constructor(data?: PartialMessage<Int64Value>);
108
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
109
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
110
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
111
- static readonly typeName = "google.protobuf.Int64Value";
112
- static readonly fields: FieldList;
113
- static readonly fieldWrapper: {
114
- wrapField(value: bigint | Int64Value): Int64Value;
115
- unwrapField(value: Int64Value): bigint;
116
- };
117
- static fromBinary(
118
- bytes: Uint8Array,
119
- options?: Partial<BinaryReadOptions>
120
- ): Int64Value;
121
- static fromJson(
122
- jsonValue: JsonValue,
123
- options?: Partial<JsonReadOptions>
124
- ): Int64Value;
125
- static fromJsonString(
126
- jsonString: string,
127
- options?: Partial<JsonReadOptions>
128
- ): Int64Value;
129
- static equals(
130
- a: Int64Value | PlainMessage<Int64Value> | undefined,
131
- b: Int64Value | PlainMessage<Int64Value> | undefined
132
- ): boolean;
69
+ /**
70
+ * The int64 value.
71
+ *
72
+ * @generated from field: int64 value = 1;
73
+ */
74
+ value: bigint;
75
+ constructor(data?: PartialMessage<Int64Value>);
76
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
77
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
78
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
79
+ static readonly typeName = "google.protobuf.Int64Value";
80
+ static readonly fields: FieldList;
81
+ static readonly fieldWrapper: {
82
+ wrapField(value: bigint | Int64Value): Int64Value;
83
+ unwrapField(value: Int64Value): bigint;
84
+ };
85
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Int64Value;
86
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Int64Value;
87
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Int64Value;
88
+ static equals(a: Int64Value | PlainMessage<Int64Value> | undefined, b: Int64Value | PlainMessage<Int64Value> | undefined): boolean;
133
89
  }
134
90
  /**
135
91
  * Wrapper message for `uint64`.
@@ -139,38 +95,26 @@ export declare class Int64Value extends Message<Int64Value> {
139
95
  * @generated from message google.protobuf.UInt64Value
140
96
  */
141
97
  export declare class UInt64Value extends Message<UInt64Value> {
142
- /**
143
- * The uint64 value.
144
- *
145
- * @generated from field: uint64 value = 1;
146
- */
147
- value: bigint;
148
- constructor(data?: PartialMessage<UInt64Value>);
149
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
150
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
151
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
152
- static readonly typeName = "google.protobuf.UInt64Value";
153
- static readonly fields: FieldList;
154
- static readonly fieldWrapper: {
155
- wrapField(value: bigint | UInt64Value): UInt64Value;
156
- unwrapField(value: UInt64Value): bigint;
157
- };
158
- static fromBinary(
159
- bytes: Uint8Array,
160
- options?: Partial<BinaryReadOptions>
161
- ): UInt64Value;
162
- static fromJson(
163
- jsonValue: JsonValue,
164
- options?: Partial<JsonReadOptions>
165
- ): UInt64Value;
166
- static fromJsonString(
167
- jsonString: string,
168
- options?: Partial<JsonReadOptions>
169
- ): UInt64Value;
170
- static equals(
171
- a: UInt64Value | PlainMessage<UInt64Value> | undefined,
172
- b: UInt64Value | PlainMessage<UInt64Value> | undefined
173
- ): boolean;
98
+ /**
99
+ * The uint64 value.
100
+ *
101
+ * @generated from field: uint64 value = 1;
102
+ */
103
+ value: bigint;
104
+ constructor(data?: PartialMessage<UInt64Value>);
105
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
106
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
107
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
108
+ static readonly typeName = "google.protobuf.UInt64Value";
109
+ static readonly fields: FieldList;
110
+ static readonly fieldWrapper: {
111
+ wrapField(value: bigint | UInt64Value): UInt64Value;
112
+ unwrapField(value: UInt64Value): bigint;
113
+ };
114
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UInt64Value;
115
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UInt64Value;
116
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UInt64Value;
117
+ static equals(a: UInt64Value | PlainMessage<UInt64Value> | undefined, b: UInt64Value | PlainMessage<UInt64Value> | undefined): boolean;
174
118
  }
175
119
  /**
176
120
  * Wrapper message for `int32`.
@@ -180,38 +124,26 @@ export declare class UInt64Value extends Message<UInt64Value> {
180
124
  * @generated from message google.protobuf.Int32Value
181
125
  */
182
126
  export declare class Int32Value extends Message<Int32Value> {
183
- /**
184
- * The int32 value.
185
- *
186
- * @generated from field: int32 value = 1;
187
- */
188
- value: number;
189
- constructor(data?: PartialMessage<Int32Value>);
190
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
191
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
192
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
193
- static readonly typeName = "google.protobuf.Int32Value";
194
- static readonly fields: FieldList;
195
- static readonly fieldWrapper: {
196
- wrapField(value: number | Int32Value): Int32Value;
197
- unwrapField(value: Int32Value): number;
198
- };
199
- static fromBinary(
200
- bytes: Uint8Array,
201
- options?: Partial<BinaryReadOptions>
202
- ): Int32Value;
203
- static fromJson(
204
- jsonValue: JsonValue,
205
- options?: Partial<JsonReadOptions>
206
- ): Int32Value;
207
- static fromJsonString(
208
- jsonString: string,
209
- options?: Partial<JsonReadOptions>
210
- ): Int32Value;
211
- static equals(
212
- a: Int32Value | PlainMessage<Int32Value> | undefined,
213
- b: Int32Value | PlainMessage<Int32Value> | undefined
214
- ): boolean;
127
+ /**
128
+ * The int32 value.
129
+ *
130
+ * @generated from field: int32 value = 1;
131
+ */
132
+ value: number;
133
+ constructor(data?: PartialMessage<Int32Value>);
134
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
135
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
136
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
137
+ static readonly typeName = "google.protobuf.Int32Value";
138
+ static readonly fields: FieldList;
139
+ static readonly fieldWrapper: {
140
+ wrapField(value: number | Int32Value): Int32Value;
141
+ unwrapField(value: Int32Value): number;
142
+ };
143
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Int32Value;
144
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Int32Value;
145
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Int32Value;
146
+ static equals(a: Int32Value | PlainMessage<Int32Value> | undefined, b: Int32Value | PlainMessage<Int32Value> | undefined): boolean;
215
147
  }
216
148
  /**
217
149
  * Wrapper message for `uint32`.
@@ -221,38 +153,26 @@ export declare class Int32Value extends Message<Int32Value> {
221
153
  * @generated from message google.protobuf.UInt32Value
222
154
  */
223
155
  export declare class UInt32Value extends Message<UInt32Value> {
224
- /**
225
- * The uint32 value.
226
- *
227
- * @generated from field: uint32 value = 1;
228
- */
229
- value: number;
230
- constructor(data?: PartialMessage<UInt32Value>);
231
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
232
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
233
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
234
- static readonly typeName = "google.protobuf.UInt32Value";
235
- static readonly fields: FieldList;
236
- static readonly fieldWrapper: {
237
- wrapField(value: number | UInt32Value): UInt32Value;
238
- unwrapField(value: UInt32Value): number;
239
- };
240
- static fromBinary(
241
- bytes: Uint8Array,
242
- options?: Partial<BinaryReadOptions>
243
- ): UInt32Value;
244
- static fromJson(
245
- jsonValue: JsonValue,
246
- options?: Partial<JsonReadOptions>
247
- ): UInt32Value;
248
- static fromJsonString(
249
- jsonString: string,
250
- options?: Partial<JsonReadOptions>
251
- ): UInt32Value;
252
- static equals(
253
- a: UInt32Value | PlainMessage<UInt32Value> | undefined,
254
- b: UInt32Value | PlainMessage<UInt32Value> | undefined
255
- ): boolean;
156
+ /**
157
+ * The uint32 value.
158
+ *
159
+ * @generated from field: uint32 value = 1;
160
+ */
161
+ value: number;
162
+ constructor(data?: PartialMessage<UInt32Value>);
163
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
164
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
165
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
166
+ static readonly typeName = "google.protobuf.UInt32Value";
167
+ static readonly fields: FieldList;
168
+ static readonly fieldWrapper: {
169
+ wrapField(value: number | UInt32Value): UInt32Value;
170
+ unwrapField(value: UInt32Value): number;
171
+ };
172
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UInt32Value;
173
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UInt32Value;
174
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UInt32Value;
175
+ static equals(a: UInt32Value | PlainMessage<UInt32Value> | undefined, b: UInt32Value | PlainMessage<UInt32Value> | undefined): boolean;
256
176
  }
257
177
  /**
258
178
  * Wrapper message for `bool`.
@@ -262,38 +182,26 @@ export declare class UInt32Value extends Message<UInt32Value> {
262
182
  * @generated from message google.protobuf.BoolValue
263
183
  */
264
184
  export declare class BoolValue extends Message<BoolValue> {
265
- /**
266
- * The bool value.
267
- *
268
- * @generated from field: bool value = 1;
269
- */
270
- value: boolean;
271
- constructor(data?: PartialMessage<BoolValue>);
272
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
273
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
274
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
275
- static readonly typeName = "google.protobuf.BoolValue";
276
- static readonly fields: FieldList;
277
- static readonly fieldWrapper: {
278
- wrapField(value: boolean | BoolValue): BoolValue;
279
- unwrapField(value: BoolValue): boolean;
280
- };
281
- static fromBinary(
282
- bytes: Uint8Array,
283
- options?: Partial<BinaryReadOptions>
284
- ): BoolValue;
285
- static fromJson(
286
- jsonValue: JsonValue,
287
- options?: Partial<JsonReadOptions>
288
- ): BoolValue;
289
- static fromJsonString(
290
- jsonString: string,
291
- options?: Partial<JsonReadOptions>
292
- ): BoolValue;
293
- static equals(
294
- a: BoolValue | PlainMessage<BoolValue> | undefined,
295
- b: BoolValue | PlainMessage<BoolValue> | undefined
296
- ): boolean;
185
+ /**
186
+ * The bool value.
187
+ *
188
+ * @generated from field: bool value = 1;
189
+ */
190
+ value: boolean;
191
+ constructor(data?: PartialMessage<BoolValue>);
192
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
193
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
194
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
195
+ static readonly typeName = "google.protobuf.BoolValue";
196
+ static readonly fields: FieldList;
197
+ static readonly fieldWrapper: {
198
+ wrapField(value: boolean | BoolValue): BoolValue;
199
+ unwrapField(value: BoolValue): boolean;
200
+ };
201
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BoolValue;
202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BoolValue;
203
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BoolValue;
204
+ static equals(a: BoolValue | PlainMessage<BoolValue> | undefined, b: BoolValue | PlainMessage<BoolValue> | undefined): boolean;
297
205
  }
298
206
  /**
299
207
  * Wrapper message for `string`.
@@ -303,38 +211,26 @@ export declare class BoolValue extends Message<BoolValue> {
303
211
  * @generated from message google.protobuf.StringValue
304
212
  */
305
213
  export declare class StringValue extends Message<StringValue> {
306
- /**
307
- * The string value.
308
- *
309
- * @generated from field: string value = 1;
310
- */
311
- value: string;
312
- constructor(data?: PartialMessage<StringValue>);
313
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
314
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
315
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
316
- static readonly typeName = "google.protobuf.StringValue";
317
- static readonly fields: FieldList;
318
- static readonly fieldWrapper: {
319
- wrapField(value: string | StringValue): StringValue;
320
- unwrapField(value: StringValue): string;
321
- };
322
- static fromBinary(
323
- bytes: Uint8Array,
324
- options?: Partial<BinaryReadOptions>
325
- ): StringValue;
326
- static fromJson(
327
- jsonValue: JsonValue,
328
- options?: Partial<JsonReadOptions>
329
- ): StringValue;
330
- static fromJsonString(
331
- jsonString: string,
332
- options?: Partial<JsonReadOptions>
333
- ): StringValue;
334
- static equals(
335
- a: StringValue | PlainMessage<StringValue> | undefined,
336
- b: StringValue | PlainMessage<StringValue> | undefined
337
- ): boolean;
214
+ /**
215
+ * The string value.
216
+ *
217
+ * @generated from field: string value = 1;
218
+ */
219
+ value: string;
220
+ constructor(data?: PartialMessage<StringValue>);
221
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
222
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
223
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
224
+ static readonly typeName = "google.protobuf.StringValue";
225
+ static readonly fields: FieldList;
226
+ static readonly fieldWrapper: {
227
+ wrapField(value: string | StringValue): StringValue;
228
+ unwrapField(value: StringValue): string;
229
+ };
230
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StringValue;
231
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StringValue;
232
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StringValue;
233
+ static equals(a: StringValue | PlainMessage<StringValue> | undefined, b: StringValue | PlainMessage<StringValue> | undefined): boolean;
338
234
  }
339
235
  /**
340
236
  * Wrapper message for `bytes`.
@@ -344,36 +240,24 @@ export declare class StringValue extends Message<StringValue> {
344
240
  * @generated from message google.protobuf.BytesValue
345
241
  */
346
242
  export declare class BytesValue extends Message<BytesValue> {
347
- /**
348
- * The bytes value.
349
- *
350
- * @generated from field: bytes value = 1;
351
- */
352
- value: Uint8Array;
353
- constructor(data?: PartialMessage<BytesValue>);
354
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
355
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
356
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
357
- static readonly typeName = "google.protobuf.BytesValue";
358
- static readonly fields: FieldList;
359
- static readonly fieldWrapper: {
360
- wrapField(value: Uint8Array | BytesValue): BytesValue;
361
- unwrapField(value: BytesValue): Uint8Array;
362
- };
363
- static fromBinary(
364
- bytes: Uint8Array,
365
- options?: Partial<BinaryReadOptions>
366
- ): BytesValue;
367
- static fromJson(
368
- jsonValue: JsonValue,
369
- options?: Partial<JsonReadOptions>
370
- ): BytesValue;
371
- static fromJsonString(
372
- jsonString: string,
373
- options?: Partial<JsonReadOptions>
374
- ): BytesValue;
375
- static equals(
376
- a: BytesValue | PlainMessage<BytesValue> | undefined,
377
- b: BytesValue | PlainMessage<BytesValue> | undefined
378
- ): boolean;
243
+ /**
244
+ * The bytes value.
245
+ *
246
+ * @generated from field: bytes value = 1;
247
+ */
248
+ value: Uint8Array;
249
+ constructor(data?: PartialMessage<BytesValue>);
250
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
251
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
252
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
253
+ static readonly typeName = "google.protobuf.BytesValue";
254
+ static readonly fields: FieldList;
255
+ static readonly fieldWrapper: {
256
+ wrapField(value: Uint8Array | BytesValue): BytesValue;
257
+ unwrapField(value: BytesValue): Uint8Array;
258
+ };
259
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BytesValue;
260
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BytesValue;
261
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BytesValue;
262
+ static equals(a: BytesValue | PlainMessage<BytesValue> | undefined, b: BytesValue | PlainMessage<BytesValue> | undefined): boolean;
379
263
  }
@@ -1,44 +1,21 @@
1
1
  export { proto3 } from "./proto3.js";
2
2
  export { proto2 } from "./proto2.js";
3
3
  export { protoInt64 } from "./proto-int64.js";
4
- export {
5
- Message,
6
- AnyMessage,
7
- PartialMessage,
8
- PlainMessage,
9
- } from "./message.js";
4
+ export { Message, DynamicMessage, PartialMessage, PlainMessage, } from "./message.js";
10
5
  export type { FieldInfo } from "./field.js";
11
6
  export type { FieldList } from "./field-list.js";
12
7
  export { ScalarType } from "./field.js";
13
8
  export type { MessageType } from "./message-type.js";
14
9
  export type { EnumType, EnumValueInfo } from "./enum.js";
15
- export type {
16
- ServiceType,
17
- MethodInfo,
18
- MethodInfoUnary,
19
- MethodInfoServerStreaming,
20
- MethodInfoClientStreaming,
21
- MethodInfoBiDiStreaming,
22
- } from "./service-type.js";
10
+ export type { ServiceType, MethodInfo, MethodInfoUnary, MethodInfoServerStreaming, MethodInfoClientStreaming, MethodInfoBiDiStreaming, } from "./service-type.js";
23
11
  export { MethodKind, MethodIdempotency } from "./service-type.js";
24
12
  export { TypeRegistry, IMessageTypeRegistry } from "./type-registry.js";
25
13
  export { DescriptorRegistry } from "./descriptor-registry.js";
26
14
  export { DescriptorSet } from "./descriptor-set.js";
27
15
  export { WireType, BinaryWriter, BinaryReader } from "./binary-encoding.js";
28
16
  export type { IBinaryReader, IBinaryWriter } from "./binary-encoding.js";
29
- export type {
30
- BinaryFormat,
31
- BinaryWriteOptions,
32
- BinaryReadOptions,
33
- } from "./binary-format.js";
34
- export {
35
- JsonFormat,
36
- JsonObject,
37
- JsonValue,
38
- JsonReadOptions,
39
- JsonWriteOptions,
40
- JsonWriteStringOptions,
41
- } from "./json-format.js";
17
+ export type { BinaryFormat, BinaryWriteOptions, BinaryReadOptions, } from "./binary-format.js";
18
+ export { JsonFormat, JsonObject, JsonValue, JsonReadOptions, JsonWriteOptions, JsonWriteStringOptions, } from "./json-format.js";
42
19
  export * from "./google/protobuf/compiler/plugin_pb.js";
43
20
  export * from "./google/protobuf/api_pb.js";
44
21
  export * from "./google/protobuf/any_pb.js";