@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
  * A Duration represents a signed, fixed-length span of time represented
@@ -73,45 +65,33 @@ import { Message } from "../../index.js";
73
65
  * @generated from message google.protobuf.Duration
74
66
  */
75
67
  export declare class Duration extends Message<Duration> {
76
- /**
77
- * Signed seconds of the span of time. Must be from -315,576,000,000
78
- * to +315,576,000,000 inclusive. Note: these bounds are computed from:
79
- * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
80
- *
81
- * @generated from field: int64 seconds = 1;
82
- */
83
- seconds: bigint;
84
- /**
85
- * Signed fractions of a second at nanosecond resolution of the span
86
- * of time. Durations less than one second are represented with a 0
87
- * `seconds` field and a positive or negative `nanos` field. For durations
88
- * of one second or more, a non-zero value for the `nanos` field must be
89
- * of the same sign as the `seconds` field. Must be from -999,999,999
90
- * to +999,999,999 inclusive.
91
- *
92
- * @generated from field: int32 nanos = 2;
93
- */
94
- nanos: number;
95
- constructor(data?: PartialMessage<Duration>);
96
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
97
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
98
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
99
- static readonly typeName = "google.protobuf.Duration";
100
- static readonly fields: FieldList;
101
- static fromBinary(
102
- bytes: Uint8Array,
103
- options?: Partial<BinaryReadOptions>
104
- ): Duration;
105
- static fromJson(
106
- jsonValue: JsonValue,
107
- options?: Partial<JsonReadOptions>
108
- ): Duration;
109
- static fromJsonString(
110
- jsonString: string,
111
- options?: Partial<JsonReadOptions>
112
- ): Duration;
113
- static equals(
114
- a: Duration | PlainMessage<Duration> | undefined,
115
- b: Duration | PlainMessage<Duration> | undefined
116
- ): boolean;
68
+ /**
69
+ * Signed seconds of the span of time. Must be from -315,576,000,000
70
+ * to +315,576,000,000 inclusive. Note: these bounds are computed from:
71
+ * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
72
+ *
73
+ * @generated from field: int64 seconds = 1;
74
+ */
75
+ seconds: bigint;
76
+ /**
77
+ * Signed fractions of a second at nanosecond resolution of the span
78
+ * of time. Durations less than one second are represented with a 0
79
+ * `seconds` field and a positive or negative `nanos` field. For durations
80
+ * of one second or more, a non-zero value for the `nanos` field must be
81
+ * of the same sign as the `seconds` field. Must be from -999,999,999
82
+ * to +999,999,999 inclusive.
83
+ *
84
+ * @generated from field: int32 nanos = 2;
85
+ */
86
+ nanos: number;
87
+ constructor(data?: PartialMessage<Duration>);
88
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
89
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
90
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
91
+ static readonly typeName = "google.protobuf.Duration";
92
+ static readonly fields: FieldList;
93
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Duration;
94
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Duration;
95
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Duration;
96
+ static equals(a: Duration | PlainMessage<Duration> | undefined, b: Duration | PlainMessage<Duration> | undefined): boolean;
117
97
  }
@@ -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
  * A generic empty message that you can re-use to avoid defining duplicated
@@ -21,24 +14,12 @@ import { Message } from "../../index.js";
21
14
  * @generated from message google.protobuf.Empty
22
15
  */
23
16
  export declare class Empty extends Message<Empty> {
24
- constructor(data?: PartialMessage<Empty>);
25
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
26
- static readonly typeName = "google.protobuf.Empty";
27
- static readonly fields: FieldList;
28
- static fromBinary(
29
- bytes: Uint8Array,
30
- options?: Partial<BinaryReadOptions>
31
- ): Empty;
32
- static fromJson(
33
- jsonValue: JsonValue,
34
- options?: Partial<JsonReadOptions>
35
- ): Empty;
36
- static fromJsonString(
37
- jsonString: string,
38
- options?: Partial<JsonReadOptions>
39
- ): Empty;
40
- static equals(
41
- a: Empty | PlainMessage<Empty> | undefined,
42
- b: Empty | PlainMessage<Empty> | undefined
43
- ): boolean;
17
+ constructor(data?: PartialMessage<Empty>);
18
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
19
+ static readonly typeName = "google.protobuf.Empty";
20
+ static readonly fields: FieldList;
21
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Empty;
22
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Empty;
23
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Empty;
24
+ static equals(a: Empty | PlainMessage<Empty> | undefined, b: Empty | PlainMessage<Empty> | undefined): boolean;
44
25
  }
@@ -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
  * `FieldMask` represents a set of symbolic field paths, for example:
@@ -212,32 +204,20 @@ import { Message } from "../../index.js";
212
204
  * @generated from message google.protobuf.FieldMask
213
205
  */
214
206
  export declare class FieldMask extends Message<FieldMask> {
215
- /**
216
- * The set of field mask paths.
217
- *
218
- * @generated from field: repeated string paths = 1;
219
- */
220
- paths: string[];
221
- constructor(data?: PartialMessage<FieldMask>);
222
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
223
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
224
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
225
- static readonly typeName = "google.protobuf.FieldMask";
226
- static readonly fields: FieldList;
227
- static fromBinary(
228
- bytes: Uint8Array,
229
- options?: Partial<BinaryReadOptions>
230
- ): FieldMask;
231
- static fromJson(
232
- jsonValue: JsonValue,
233
- options?: Partial<JsonReadOptions>
234
- ): FieldMask;
235
- static fromJsonString(
236
- jsonString: string,
237
- options?: Partial<JsonReadOptions>
238
- ): FieldMask;
239
- static equals(
240
- a: FieldMask | PlainMessage<FieldMask> | undefined,
241
- b: FieldMask | PlainMessage<FieldMask> | undefined
242
- ): boolean;
207
+ /**
208
+ * The set of field mask paths.
209
+ *
210
+ * @generated from field: repeated string paths = 1;
211
+ */
212
+ paths: string[];
213
+ constructor(data?: PartialMessage<FieldMask>);
214
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
215
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
216
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
217
+ static readonly typeName = "google.protobuf.FieldMask";
218
+ static readonly fields: FieldList;
219
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldMask;
220
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldMask;
221
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldMask;
222
+ static equals(a: FieldMask | PlainMessage<FieldMask> | undefined, b: FieldMask | PlainMessage<FieldMask> | undefined): boolean;
243
223
  }
@@ -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
  * `SourceContext` represents information about the source of a
@@ -14,31 +7,19 @@ import { Message } from "../../index.js";
14
7
  * @generated from message google.protobuf.SourceContext
15
8
  */
16
9
  export declare class SourceContext extends Message<SourceContext> {
17
- /**
18
- * The path-qualified name of the .proto file that contained the associated
19
- * protobuf element. For example: `"google/protobuf/source_context.proto"`.
20
- *
21
- * @generated from field: string file_name = 1;
22
- */
23
- fileName: string;
24
- constructor(data?: PartialMessage<SourceContext>);
25
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
26
- static readonly typeName = "google.protobuf.SourceContext";
27
- static readonly fields: FieldList;
28
- static fromBinary(
29
- bytes: Uint8Array,
30
- options?: Partial<BinaryReadOptions>
31
- ): SourceContext;
32
- static fromJson(
33
- jsonValue: JsonValue,
34
- options?: Partial<JsonReadOptions>
35
- ): SourceContext;
36
- static fromJsonString(
37
- jsonString: string,
38
- options?: Partial<JsonReadOptions>
39
- ): SourceContext;
40
- static equals(
41
- a: SourceContext | PlainMessage<SourceContext> | undefined,
42
- b: SourceContext | PlainMessage<SourceContext> | undefined
43
- ): boolean;
10
+ /**
11
+ * The path-qualified name of the .proto file that contained the associated
12
+ * protobuf element. For example: `"google/protobuf/source_context.proto"`.
13
+ *
14
+ * @generated from field: string file_name = 1;
15
+ */
16
+ fileName: string;
17
+ constructor(data?: PartialMessage<SourceContext>);
18
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
19
+ static readonly typeName = "google.protobuf.SourceContext";
20
+ static readonly fields: FieldList;
21
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceContext;
22
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceContext;
23
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceContext;
24
+ static equals(a: SourceContext | PlainMessage<SourceContext> | undefined, b: SourceContext | PlainMessage<SourceContext> | undefined): boolean;
44
25
  }
@@ -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
  * `NullValue` is a singleton enumeration to represent the null value for the
@@ -17,12 +9,12 @@ import { Message } from "../../index.js";
17
9
  * @generated from enum google.protobuf.NullValue
18
10
  */
19
11
  export declare enum NullValue {
20
- /**
21
- * Null value.
22
- *
23
- * @generated from enum value: NULL_VALUE = 0;
24
- */
25
- NULL_VALUE = 0,
12
+ /**
13
+ * Null value.
14
+ *
15
+ * @generated from enum value: NULL_VALUE = 0;
16
+ */
17
+ NULL_VALUE = 0
26
18
  }
27
19
  /**
28
20
  * `Struct` represents a structured data value, consisting of fields
@@ -37,36 +29,24 @@ export declare enum NullValue {
37
29
  * @generated from message google.protobuf.Struct
38
30
  */
39
31
  export declare class Struct extends Message<Struct> {
40
- /**
41
- * Unordered map of dynamically typed values.
42
- *
43
- * @generated from field: map<string, google.protobuf.Value> fields = 1;
44
- */
45
- fields: {
46
- [key: string]: Value;
47
- };
48
- constructor(data?: PartialMessage<Struct>);
49
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
50
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
51
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
52
- static readonly typeName = "google.protobuf.Struct";
53
- static readonly fields: FieldList;
54
- static fromBinary(
55
- bytes: Uint8Array,
56
- options?: Partial<BinaryReadOptions>
57
- ): Struct;
58
- static fromJson(
59
- jsonValue: JsonValue,
60
- options?: Partial<JsonReadOptions>
61
- ): Struct;
62
- static fromJsonString(
63
- jsonString: string,
64
- options?: Partial<JsonReadOptions>
65
- ): Struct;
66
- static equals(
67
- a: Struct | PlainMessage<Struct> | undefined,
68
- b: Struct | PlainMessage<Struct> | undefined
69
- ): boolean;
32
+ /**
33
+ * Unordered map of dynamically typed values.
34
+ *
35
+ * @generated from field: map<string, google.protobuf.Value> fields = 1;
36
+ */
37
+ fields: {
38
+ [key: string]: Value;
39
+ };
40
+ constructor(data?: PartialMessage<Struct>);
41
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
42
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
43
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
44
+ static readonly typeName = "google.protobuf.Struct";
45
+ static readonly fields: FieldList;
46
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Struct;
47
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Struct;
48
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Struct;
49
+ static equals(a: Struct | PlainMessage<Struct> | undefined, b: Struct | PlainMessage<Struct> | undefined): boolean;
70
50
  }
71
51
  /**
72
52
  * `Value` represents a dynamically typed value which can be either
@@ -79,13 +59,12 @@ export declare class Struct extends Message<Struct> {
79
59
  * @generated from message google.protobuf.Value
80
60
  */
81
61
  export declare class Value extends Message<Value> {
82
- /**
83
- * The kind of value.
84
- *
85
- * @generated from oneof google.protobuf.Value.kind
86
- */
87
- kind:
88
- | {
62
+ /**
63
+ * The kind of value.
64
+ *
65
+ * @generated from oneof google.protobuf.Value.kind
66
+ */
67
+ kind: {
89
68
  /**
90
69
  * Represents a null value.
91
70
  *
@@ -93,8 +72,7 @@ export declare class Value extends Message<Value> {
93
72
  */
94
73
  value: NullValue;
95
74
  case: "nullValue";
96
- }
97
- | {
75
+ } | {
98
76
  /**
99
77
  * Represents a double value.
100
78
  *
@@ -102,8 +80,7 @@ export declare class Value extends Message<Value> {
102
80
  */
103
81
  value: number;
104
82
  case: "numberValue";
105
- }
106
- | {
83
+ } | {
107
84
  /**
108
85
  * Represents a string value.
109
86
  *
@@ -111,8 +88,7 @@ export declare class Value extends Message<Value> {
111
88
  */
112
89
  value: string;
113
90
  case: "stringValue";
114
- }
115
- | {
91
+ } | {
116
92
  /**
117
93
  * Represents a boolean value.
118
94
  *
@@ -120,8 +96,7 @@ export declare class Value extends Message<Value> {
120
96
  */
121
97
  value: boolean;
122
98
  case: "boolValue";
123
- }
124
- | {
99
+ } | {
125
100
  /**
126
101
  * Represents a structured value.
127
102
  *
@@ -129,8 +104,7 @@ export declare class Value extends Message<Value> {
129
104
  */
130
105
  value: Struct;
131
106
  case: "structValue";
132
- }
133
- | {
107
+ } | {
134
108
  /**
135
109
  * Represents a repeated `Value`.
136
110
  *
@@ -138,33 +112,20 @@ export declare class Value extends Message<Value> {
138
112
  */
139
113
  value: ListValue;
140
114
  case: "listValue";
141
- }
142
- | {
115
+ } | {
143
116
  case: undefined;
144
117
  value?: undefined;
145
- };
146
- constructor(data?: PartialMessage<Value>);
147
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
148
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
149
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
150
- static readonly typeName = "google.protobuf.Value";
151
- static readonly fields: FieldList;
152
- static fromBinary(
153
- bytes: Uint8Array,
154
- options?: Partial<BinaryReadOptions>
155
- ): Value;
156
- static fromJson(
157
- jsonValue: JsonValue,
158
- options?: Partial<JsonReadOptions>
159
- ): Value;
160
- static fromJsonString(
161
- jsonString: string,
162
- options?: Partial<JsonReadOptions>
163
- ): Value;
164
- static equals(
165
- a: Value | PlainMessage<Value> | undefined,
166
- b: Value | PlainMessage<Value> | undefined
167
- ): boolean;
118
+ };
119
+ constructor(data?: PartialMessage<Value>);
120
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
121
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
122
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
123
+ static readonly typeName = "google.protobuf.Value";
124
+ static readonly fields: FieldList;
125
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value;
126
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Value;
127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Value;
128
+ static equals(a: Value | PlainMessage<Value> | undefined, b: Value | PlainMessage<Value> | undefined): boolean;
168
129
  }
169
130
  /**
170
131
  * `ListValue` is a wrapper around a repeated field of values.
@@ -174,32 +135,20 @@ export declare class Value extends Message<Value> {
174
135
  * @generated from message google.protobuf.ListValue
175
136
  */
176
137
  export declare class ListValue extends Message<ListValue> {
177
- /**
178
- * Repeated field of dynamically typed values.
179
- *
180
- * @generated from field: repeated google.protobuf.Value values = 1;
181
- */
182
- values: Value[];
183
- constructor(data?: PartialMessage<ListValue>);
184
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
185
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
186
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
187
- static readonly typeName = "google.protobuf.ListValue";
188
- static readonly fields: FieldList;
189
- static fromBinary(
190
- bytes: Uint8Array,
191
- options?: Partial<BinaryReadOptions>
192
- ): ListValue;
193
- static fromJson(
194
- jsonValue: JsonValue,
195
- options?: Partial<JsonReadOptions>
196
- ): ListValue;
197
- static fromJsonString(
198
- jsonString: string,
199
- options?: Partial<JsonReadOptions>
200
- ): ListValue;
201
- static equals(
202
- a: ListValue | PlainMessage<ListValue> | undefined,
203
- b: ListValue | PlainMessage<ListValue> | undefined
204
- ): boolean;
138
+ /**
139
+ * Repeated field of dynamically typed values.
140
+ *
141
+ * @generated from field: repeated google.protobuf.Value values = 1;
142
+ */
143
+ values: Value[];
144
+ constructor(data?: PartialMessage<ListValue>);
145
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
146
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
147
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
148
+ static readonly typeName = "google.protobuf.ListValue";
149
+ static readonly fields: FieldList;
150
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListValue;
151
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListValue;
152
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListValue;
153
+ static equals(a: ListValue | PlainMessage<ListValue> | undefined, b: ListValue | PlainMessage<ListValue> | undefined): boolean;
205
154
  }
@@ -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
  * A Timestamp represents a point in time independent of any time zone or local
@@ -106,46 +98,34 @@ import { Message } from "../../index.js";
106
98
  * @generated from message google.protobuf.Timestamp
107
99
  */
108
100
  export declare class Timestamp extends Message<Timestamp> {
109
- /**
110
- * Represents seconds of UTC time since Unix epoch
111
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
112
- * 9999-12-31T23:59:59Z inclusive.
113
- *
114
- * @generated from field: int64 seconds = 1;
115
- */
116
- seconds: bigint;
117
- /**
118
- * Non-negative fractions of a second at nanosecond resolution. Negative
119
- * second values with fractions must still have non-negative nanos values
120
- * that count forward in time. Must be from 0 to 999,999,999
121
- * inclusive.
122
- *
123
- * @generated from field: int32 nanos = 2;
124
- */
125
- nanos: number;
126
- constructor(data?: PartialMessage<Timestamp>);
127
- fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
128
- toJson(options?: Partial<JsonWriteOptions>): JsonValue;
129
- toDate(): Date;
130
- static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
131
- static readonly typeName = "google.protobuf.Timestamp";
132
- static readonly fields: FieldList;
133
- static now(): Timestamp;
134
- static fromDate(date: Date): Timestamp;
135
- static fromBinary(
136
- bytes: Uint8Array,
137
- options?: Partial<BinaryReadOptions>
138
- ): Timestamp;
139
- static fromJson(
140
- jsonValue: JsonValue,
141
- options?: Partial<JsonReadOptions>
142
- ): Timestamp;
143
- static fromJsonString(
144
- jsonString: string,
145
- options?: Partial<JsonReadOptions>
146
- ): Timestamp;
147
- static equals(
148
- a: Timestamp | PlainMessage<Timestamp> | undefined,
149
- b: Timestamp | PlainMessage<Timestamp> | undefined
150
- ): boolean;
101
+ /**
102
+ * Represents seconds of UTC time since Unix epoch
103
+ * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
104
+ * 9999-12-31T23:59:59Z inclusive.
105
+ *
106
+ * @generated from field: int64 seconds = 1;
107
+ */
108
+ seconds: bigint;
109
+ /**
110
+ * Non-negative fractions of a second at nanosecond resolution. Negative
111
+ * second values with fractions must still have non-negative nanos values
112
+ * that count forward in time. Must be from 0 to 999,999,999
113
+ * inclusive.
114
+ *
115
+ * @generated from field: int32 nanos = 2;
116
+ */
117
+ nanos: number;
118
+ constructor(data?: PartialMessage<Timestamp>);
119
+ fromJson(json: JsonValue, options?: Partial<JsonReadOptions>): this;
120
+ toJson(options?: Partial<JsonWriteOptions>): JsonValue;
121
+ toDate(): Date;
122
+ static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
123
+ static readonly typeName = "google.protobuf.Timestamp";
124
+ static readonly fields: FieldList;
125
+ static now(): Timestamp;
126
+ static fromDate(date: Date): Timestamp;
127
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Timestamp;
128
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Timestamp;
129
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Timestamp;
130
+ static equals(a: Timestamp | PlainMessage<Timestamp> | undefined, b: Timestamp | PlainMessage<Timestamp> | undefined): boolean;
151
131
  }