@bufbuild/protobuf 0.0.1-alpha.1 → 0.0.2-alpha.2
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/dist/cjs/binary-encoding.js +414 -409
- package/dist/cjs/binary-format.js +13 -0
- package/dist/cjs/descriptor-registry.js +420 -449
- package/dist/cjs/descriptor-set.js +429 -513
- package/dist/cjs/enum.js +13 -0
- package/dist/cjs/field-list.js +13 -0
- package/dist/cjs/field.js +43 -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/google/varint.js +166 -171
- package/dist/cjs/index.js +41 -122
- package/dist/cjs/json-format.js +13 -0
- package/dist/cjs/message-type.js +13 -0
- package/dist/cjs/message.js +89 -85
- package/dist/cjs/private/assert.js +33 -26
- package/dist/cjs/private/base64.js +93 -79
- package/dist/cjs/private/binary-format-common.js +208 -208
- package/dist/cjs/private/binary-format-proto2.js +88 -109
- package/dist/cjs/private/binary-format-proto3.js +70 -90
- package/dist/cjs/private/enum.js +77 -44
- package/dist/cjs/private/field-list.js +64 -50
- package/dist/cjs/private/field-wrapper.js +21 -10
- package/dist/cjs/private/field.js +35 -25
- package/dist/cjs/private/json-format-common.js +427 -440
- package/dist/cjs/private/json-format-proto2.js +91 -89
- package/dist/cjs/private/json-format-proto3.js +82 -93
- package/dist/cjs/private/message-type.js +39 -27
- package/dist/cjs/private/names.js +71 -62
- package/dist/cjs/private/options-map.js +13 -0
- package/dist/cjs/private/proto-runtime.js +25 -16
- package/dist/cjs/private/scalars.js +113 -103
- package/dist/cjs/private/util-common.js +193 -210
- package/dist/cjs/private/util.js +13 -0
- package/dist/cjs/proto-int64.js +123 -111
- package/dist/cjs/proto2.js +63 -63
- package/dist/cjs/proto3.js +74 -74
- package/dist/cjs/service-type.js +27 -17
- package/dist/cjs/type-registry.js +46 -31
- package/dist/esm/binary-encoding.js +414 -414
- package/dist/esm/binary-format.js +13 -0
- package/dist/esm/descriptor-registry.js +422 -458
- package/dist/esm/descriptor-set.js +430 -478
- package/dist/esm/enum.js +13 -0
- package/dist/esm/field-list.js +13 -0
- package/dist/esm/field.js +42 -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/google/varint.js +165 -164
- package/dist/esm/index.js +14 -1
- package/dist/esm/json-format.js +13 -0
- package/dist/esm/message-type.js +13 -0
- package/dist/esm/message.js +89 -85
- package/dist/esm/private/assert.js +32 -21
- package/dist/esm/private/base64.js +92 -78
- package/dist/esm/private/binary-format-common.js +209 -207
- package/dist/esm/private/binary-format-proto2.js +89 -81
- package/dist/esm/private/binary-format-proto3.js +71 -67
- package/dist/esm/private/enum.js +75 -43
- package/dist/esm/private/field-list.js +64 -50
- package/dist/esm/private/field-wrapper.js +21 -10
- package/dist/esm/private/field.js +35 -22
- package/dist/esm/private/json-format-common.js +427 -435
- package/dist/esm/private/json-format-proto2.js +89 -81
- package/dist/esm/private/json-format-proto3.js +79 -80
- package/dist/esm/private/message-type.js +40 -28
- package/dist/esm/private/names.js +70 -57
- package/dist/esm/private/options-map.js +13 -0
- package/dist/esm/private/proto-runtime.js +26 -12
- package/dist/esm/private/scalars.js +112 -99
- package/dist/esm/private/util-common.js +193 -192
- package/dist/esm/private/util.js +13 -0
- package/dist/esm/proto-int64.js +123 -111
- package/dist/esm/proto2.js +63 -57
- package/dist/esm/proto3.js +74 -68
- package/dist/esm/service-type.js +25 -12
- package/dist/esm/type-registry.js +46 -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/google/varint.d.ts +6 -13
- package/dist/types/index.d.ts +4 -27
- package/dist/types/json-format.d.ts +70 -89
- package/dist/types/message-type.d.ts +37 -45
- package/dist/types/message.d.ts +62 -87
- 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 +13 -11
- package/dist/types/private/field-list.d.ts +14 -21
- package/dist/types/private/field-wrapper.d.ts +4 -10
- package/dist/types/private/field.d.ts +12 -12
- package/dist/types/private/json-format-common.d.ts +5 -27
- package/dist/types/private/message-type.d.ts +12 -7
- 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 +34 -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 +36 -56
- package/dist/types/type-registry.d.ts +13 -15
- package/package.json +2 -3
|
@@ -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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
options?: Partial<
|
|
38
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
options?: Partial<
|
|
79
|
-
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
options?: Partial<
|
|
120
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
options?: Partial<
|
|
161
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
options?: Partial<
|
|
202
|
-
|
|
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
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
options?: Partial<
|
|
243
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
options?: Partial<
|
|
284
|
-
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
options?: Partial<
|
|
325
|
-
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
options?: Partial<
|
|
366
|
-
|
|
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
|
}
|
|
@@ -17,11 +17,7 @@ export declare function varint64read(this: ReaderLike): [number, number];
|
|
|
17
17
|
*
|
|
18
18
|
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
|
|
19
19
|
*/
|
|
20
|
-
export declare function varint64write(
|
|
21
|
-
lo: number,
|
|
22
|
-
hi: number,
|
|
23
|
-
bytes: number[]
|
|
24
|
-
): void;
|
|
20
|
+
export declare function varint64write(lo: number, hi: number, bytes: number[]): void;
|
|
25
21
|
/**
|
|
26
22
|
* Parse decimal string of 64 bit integer value as two JS numbers.
|
|
27
23
|
*
|
|
@@ -38,10 +34,7 @@ export declare function int64fromString(dec: string): [boolean, number, number];
|
|
|
38
34
|
*
|
|
39
35
|
* Copyright 2008 Google Inc.
|
|
40
36
|
*/
|
|
41
|
-
export declare function int64toString(
|
|
42
|
-
bitsLow: number,
|
|
43
|
-
bitsHigh: number
|
|
44
|
-
): string;
|
|
37
|
+
export declare function int64toString(bitsLow: number, bitsHigh: number): string;
|
|
45
38
|
/**
|
|
46
39
|
* Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
|
|
47
40
|
*
|
|
@@ -57,9 +50,9 @@ export declare function varint32write(value: number, bytes: number[]): void;
|
|
|
57
50
|
*/
|
|
58
51
|
export declare function varint32read(this: ReaderLike): number;
|
|
59
52
|
declare type ReaderLike = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
buf: Uint8Array;
|
|
54
|
+
pos: number;
|
|
55
|
+
len: number;
|
|
56
|
+
assertBounds(): void;
|
|
64
57
|
};
|
|
65
58
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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, AnyMessage, 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
|
-
|
|
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";
|