@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.
- package/README.md +21 -1
- package/dist/cjs/binary-encoding.js +402 -410
- package/dist/cjs/descriptor-registry.js +407 -449
- package/dist/cjs/descriptor-set.js +416 -513
- package/dist/cjs/field.js +30 -30
- package/dist/cjs/google/protobuf/any_pb.js +122 -140
- package/dist/cjs/google/protobuf/api_pb.js +177 -224
- package/dist/cjs/google/protobuf/compiler/plugin_pb.js +125 -227
- package/dist/cjs/google/protobuf/descriptor_pb.js +1029 -1888
- package/dist/cjs/google/protobuf/duration_pb.js +72 -88
- package/dist/cjs/google/protobuf/empty_pb.js +17 -17
- package/dist/cjs/google/protobuf/field_mask_pb.js +77 -94
- package/dist/cjs/google/protobuf/source_context_pb.js +25 -25
- package/dist/cjs/google/protobuf/struct_pb.js +144 -181
- package/dist/cjs/google/protobuf/timestamp_pb.js +86 -123
- package/dist/cjs/google/protobuf/type_pb.js +406 -462
- package/dist/cjs/google/protobuf/wrappers_pb.js +407 -470
- package/dist/cjs/index.js +24 -122
- package/dist/cjs/message.js +81 -89
- package/dist/cjs/private/assert.js +20 -26
- package/dist/cjs/private/base64.js +79 -78
- package/dist/cjs/private/binary-format-common.js +195 -208
- package/dist/cjs/private/binary-format-proto2.js +75 -109
- package/dist/cjs/private/binary-format-proto3.js +57 -90
- package/dist/cjs/private/enum.js +38 -43
- package/dist/cjs/private/field-list.js +51 -50
- package/dist/cjs/private/field-wrapper.js +8 -10
- package/dist/cjs/private/field.js +22 -25
- package/dist/cjs/private/goog-varint.js +275 -0
- package/dist/cjs/private/json-format-common.js +414 -440
- package/dist/cjs/private/json-format-proto2.js +78 -89
- package/dist/cjs/private/json-format-proto3.js +69 -93
- package/dist/cjs/private/message-type.js +26 -27
- package/dist/cjs/private/names.js +58 -62
- package/dist/cjs/private/proto-runtime.js +11 -16
- package/dist/cjs/private/scalars.js +100 -103
- package/dist/cjs/private/util-common.js +180 -210
- package/dist/cjs/proto-int64.js +111 -112
- package/dist/cjs/proto2.js +50 -63
- package/dist/cjs/proto3.js +61 -74
- package/dist/cjs/service-type.js +14 -17
- package/dist/cjs/type-registry.js +33 -31
- package/dist/esm/binary-encoding.js +401 -414
- package/dist/esm/descriptor-registry.js +409 -458
- package/dist/esm/descriptor-set.js +417 -478
- package/dist/esm/field.js +29 -29
- package/dist/esm/google/protobuf/any_pb.js +122 -140
- package/dist/esm/google/protobuf/api_pb.js +177 -197
- package/dist/esm/google/protobuf/compiler/plugin_pb.js +123 -216
- package/dist/esm/google/protobuf/descriptor_pb.js +1013 -1804
- package/dist/esm/google/protobuf/duration_pb.js +72 -88
- package/dist/esm/google/protobuf/empty_pb.js +17 -17
- package/dist/esm/google/protobuf/field_mask_pb.js +77 -94
- package/dist/esm/google/protobuf/source_context_pb.js +25 -25
- package/dist/esm/google/protobuf/struct_pb.js +143 -180
- package/dist/esm/google/protobuf/timestamp_pb.js +86 -123
- package/dist/esm/google/protobuf/type_pb.js +401 -421
- package/dist/esm/google/protobuf/wrappers_pb.js +406 -397
- package/dist/esm/index.js +1 -1
- package/dist/esm/message.js +81 -89
- package/dist/esm/private/assert.js +19 -21
- package/dist/esm/private/base64.js +79 -78
- package/dist/esm/private/binary-format-common.js +196 -207
- package/dist/esm/private/binary-format-proto2.js +76 -81
- package/dist/esm/private/binary-format-proto3.js +58 -67
- package/dist/esm/private/enum.js +38 -43
- package/dist/esm/private/field-list.js +51 -50
- package/dist/esm/private/field-wrapper.js +8 -10
- package/dist/esm/private/field.js +22 -22
- package/dist/esm/private/goog-varint.js +266 -0
- package/dist/esm/private/json-format-common.js +414 -435
- package/dist/esm/private/json-format-proto2.js +76 -81
- package/dist/esm/private/json-format-proto3.js +66 -80
- package/dist/esm/private/message-type.js +27 -28
- package/dist/esm/private/names.js +57 -57
- package/dist/esm/private/proto-runtime.js +11 -11
- package/dist/esm/private/scalars.js +99 -99
- package/dist/esm/private/util-common.js +180 -192
- package/dist/esm/proto-int64.js +111 -112
- package/dist/esm/proto2.js +50 -57
- package/dist/esm/proto3.js +61 -68
- package/dist/esm/service-type.js +12 -12
- package/dist/esm/type-registry.js +33 -31
- package/dist/types/binary-encoding.d.ts +398 -398
- package/dist/types/binary-format.d.ts +69 -91
- package/dist/types/descriptor-registry.d.ts +23 -29
- package/dist/types/descriptor-set.d.ts +107 -128
- package/dist/types/enum.d.ts +21 -21
- package/dist/types/field-list.d.ts +21 -21
- package/dist/types/field.d.ts +191 -231
- package/dist/types/google/protobuf/any_pb.d.ts +56 -77
- package/dist/types/google/protobuf/api_pb.d.ts +144 -187
- package/dist/types/google/protobuf/compiler/plugin_pb.d.ts +195 -257
- package/dist/types/google/protobuf/descriptor_pb.d.ts +1360 -1737
- package/dist/types/google/protobuf/duration_pb.d.ts +30 -50
- package/dist/types/google/protobuf/empty_pb.d.ts +9 -28
- package/dist/types/google/protobuf/field_mask_pb.d.ts +17 -37
- package/dist/types/google/protobuf/source_context_pb.d.ts +16 -35
- package/dist/types/google/protobuf/struct_pb.d.ts +64 -115
- package/dist/types/google/protobuf/timestamp_pb.d.ts +31 -51
- package/dist/types/google/protobuf/type_pb.d.ts +355 -422
- package/dist/types/google/protobuf/wrappers_pb.d.ts +181 -297
- package/dist/types/index.d.ts +4 -27
- package/dist/types/json-format.d.ts +70 -89
- package/dist/types/message-type.d.ts +38 -46
- package/dist/types/message.d.ts +73 -99
- package/dist/types/private/assert.d.ts +1 -4
- package/dist/types/private/binary-format-common.d.ts +6 -32
- package/dist/types/private/enum.d.ts +4 -11
- package/dist/types/private/field-list.d.ts +14 -21
- package/dist/types/private/field-wrapper.d.ts +5 -11
- package/dist/types/private/field.d.ts +12 -12
- package/dist/types/{google/varint.d.ts → private/goog-varint.d.ts} +6 -13
- package/dist/types/private/json-format-common.d.ts +5 -27
- package/dist/types/private/message-type.d.ts +3 -8
- package/dist/types/private/names.d.ts +1 -4
- package/dist/types/private/options-map.d.ts +1 -1
- package/dist/types/private/proto-runtime.d.ts +29 -42
- package/dist/types/private/scalars.d.ts +5 -12
- package/dist/types/private/util-common.d.ts +1 -4
- package/dist/types/private/util.d.ts +29 -41
- package/dist/types/proto-int64.d.ts +42 -42
- package/dist/types/service-type.d.ts +37 -57
- package/dist/types/type-registry.d.ts +13 -15
- package/package.json +2 -2
- package/dist/cjs/google/varint.js +0 -280
- 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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
options?: Partial<
|
|
104
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
options?: Partial<
|
|
31
|
-
|
|
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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
options?: Partial<
|
|
230
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
options?: Partial<
|
|
31
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
options?: Partial<
|
|
57
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
options?: Partial<
|
|
155
|
-
|
|
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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
options?: Partial<
|
|
192
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
options?: Partial<
|
|
138
|
-
|
|
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
|
}
|