@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,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protoc-gen-es v0.0.1
|
|
2
|
+
// @generated by protoc-gen-es v0.0.1 with parameter "bootstrap_wkt=true,ts_nocheck=false"
|
|
3
3
|
// @generated from file google/protobuf/wrappers.proto (package google.protobuf, syntax proto3)
|
|
4
4
|
//
|
|
5
5
|
// Protocol Buffers - Google's data interchange format
|
|
@@ -49,56 +49,57 @@ import { Message, ScalarType, proto3, protoInt64 } from "../../index.js";
|
|
|
49
49
|
* @generated from message google.protobuf.DoubleValue
|
|
50
50
|
*/
|
|
51
51
|
export class DoubleValue extends Message {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
52
|
+
constructor(data) {
|
|
53
|
+
super();
|
|
54
|
+
/**
|
|
55
|
+
* The double value.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: double value = 1;
|
|
58
|
+
*/
|
|
59
|
+
this.value = 0;
|
|
60
|
+
proto3.util.initPartial(data, this);
|
|
61
|
+
}
|
|
62
|
+
toJson(options) {
|
|
63
|
+
return proto3.json.writeScalar(ScalarType.DOUBLE, this.value, true);
|
|
64
|
+
}
|
|
65
|
+
fromJson(json, options) {
|
|
66
|
+
try {
|
|
67
|
+
this.value = proto3.json.readScalar(ScalarType.DOUBLE, json);
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
let m = `cannot decode message google.protobuf.DoubleValue from JSON"`;
|
|
71
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
72
|
+
m += `: ${e.message}`;
|
|
73
|
+
}
|
|
74
|
+
throw new Error(m);
|
|
75
|
+
}
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
static fromBinary(bytes, options) {
|
|
79
|
+
return new DoubleValue().fromBinary(bytes, options);
|
|
80
|
+
}
|
|
81
|
+
static fromJson(jsonValue, options) {
|
|
82
|
+
return new DoubleValue().fromJson(jsonValue, options);
|
|
83
|
+
}
|
|
84
|
+
static fromJsonString(jsonString, options) {
|
|
85
|
+
return new DoubleValue().fromJsonString(jsonString, options);
|
|
86
|
+
}
|
|
87
|
+
static equals(a, b) {
|
|
88
|
+
return proto3.util.equals(DoubleValue, a, b);
|
|
89
|
+
}
|
|
89
90
|
}
|
|
90
91
|
DoubleValue.runtime = proto3;
|
|
91
92
|
DoubleValue.typeName = "google.protobuf.DoubleValue";
|
|
92
93
|
DoubleValue.fields = proto3.util.newFieldList(() => [
|
|
93
|
-
|
|
94
|
+
{ no: 1, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
94
95
|
]);
|
|
95
96
|
DoubleValue.fieldWrapper = {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
wrapField(value) {
|
|
98
|
+
return value instanceof DoubleValue ? value : new DoubleValue({ value });
|
|
99
|
+
},
|
|
100
|
+
unwrapField(value) {
|
|
101
|
+
return value.value;
|
|
102
|
+
}
|
|
102
103
|
};
|
|
103
104
|
/**
|
|
104
105
|
* Wrapper message for `float`.
|
|
@@ -108,56 +109,57 @@ DoubleValue.fieldWrapper = {
|
|
|
108
109
|
* @generated from message google.protobuf.FloatValue
|
|
109
110
|
*/
|
|
110
111
|
export class FloatValue extends Message {
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
112
|
+
constructor(data) {
|
|
113
|
+
super();
|
|
114
|
+
/**
|
|
115
|
+
* The float value.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: float value = 1;
|
|
118
|
+
*/
|
|
119
|
+
this.value = 0;
|
|
120
|
+
proto3.util.initPartial(data, this);
|
|
121
|
+
}
|
|
122
|
+
toJson(options) {
|
|
123
|
+
return proto3.json.writeScalar(ScalarType.FLOAT, this.value, true);
|
|
124
|
+
}
|
|
125
|
+
fromJson(json, options) {
|
|
126
|
+
try {
|
|
127
|
+
this.value = proto3.json.readScalar(ScalarType.FLOAT, json);
|
|
128
|
+
}
|
|
129
|
+
catch (e) {
|
|
130
|
+
let m = `cannot decode message google.protobuf.FloatValue from JSON"`;
|
|
131
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
132
|
+
m += `: ${e.message}`;
|
|
133
|
+
}
|
|
134
|
+
throw new Error(m);
|
|
135
|
+
}
|
|
136
|
+
return this;
|
|
137
|
+
}
|
|
138
|
+
static fromBinary(bytes, options) {
|
|
139
|
+
return new FloatValue().fromBinary(bytes, options);
|
|
140
|
+
}
|
|
141
|
+
static fromJson(jsonValue, options) {
|
|
142
|
+
return new FloatValue().fromJson(jsonValue, options);
|
|
143
|
+
}
|
|
144
|
+
static fromJsonString(jsonString, options) {
|
|
145
|
+
return new FloatValue().fromJsonString(jsonString, options);
|
|
146
|
+
}
|
|
147
|
+
static equals(a, b) {
|
|
148
|
+
return proto3.util.equals(FloatValue, a, b);
|
|
149
|
+
}
|
|
148
150
|
}
|
|
149
151
|
FloatValue.runtime = proto3;
|
|
150
152
|
FloatValue.typeName = "google.protobuf.FloatValue";
|
|
151
153
|
FloatValue.fields = proto3.util.newFieldList(() => [
|
|
152
|
-
|
|
154
|
+
{ no: 1, name: "value", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
153
155
|
]);
|
|
154
156
|
FloatValue.fieldWrapper = {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
wrapField(value) {
|
|
158
|
+
return value instanceof FloatValue ? value : new FloatValue({ value });
|
|
159
|
+
},
|
|
160
|
+
unwrapField(value) {
|
|
161
|
+
return value.value;
|
|
162
|
+
}
|
|
161
163
|
};
|
|
162
164
|
/**
|
|
163
165
|
* Wrapper message for `int64`.
|
|
@@ -167,56 +169,57 @@ FloatValue.fieldWrapper = {
|
|
|
167
169
|
* @generated from message google.protobuf.Int64Value
|
|
168
170
|
*/
|
|
169
171
|
export class Int64Value extends Message {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
172
|
+
constructor(data) {
|
|
173
|
+
super();
|
|
174
|
+
/**
|
|
175
|
+
* The int64 value.
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: int64 value = 1;
|
|
178
|
+
*/
|
|
179
|
+
this.value = protoInt64.zero;
|
|
180
|
+
proto3.util.initPartial(data, this);
|
|
181
|
+
}
|
|
182
|
+
toJson(options) {
|
|
183
|
+
return proto3.json.writeScalar(ScalarType.INT64, this.value, true);
|
|
184
|
+
}
|
|
185
|
+
fromJson(json, options) {
|
|
186
|
+
try {
|
|
187
|
+
this.value = proto3.json.readScalar(ScalarType.INT64, json);
|
|
188
|
+
}
|
|
189
|
+
catch (e) {
|
|
190
|
+
let m = `cannot decode message google.protobuf.Int64Value from JSON"`;
|
|
191
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
192
|
+
m += `: ${e.message}`;
|
|
193
|
+
}
|
|
194
|
+
throw new Error(m);
|
|
195
|
+
}
|
|
196
|
+
return this;
|
|
197
|
+
}
|
|
198
|
+
static fromBinary(bytes, options) {
|
|
199
|
+
return new Int64Value().fromBinary(bytes, options);
|
|
200
|
+
}
|
|
201
|
+
static fromJson(jsonValue, options) {
|
|
202
|
+
return new Int64Value().fromJson(jsonValue, options);
|
|
203
|
+
}
|
|
204
|
+
static fromJsonString(jsonString, options) {
|
|
205
|
+
return new Int64Value().fromJsonString(jsonString, options);
|
|
206
|
+
}
|
|
207
|
+
static equals(a, b) {
|
|
208
|
+
return proto3.util.equals(Int64Value, a, b);
|
|
209
|
+
}
|
|
207
210
|
}
|
|
208
211
|
Int64Value.runtime = proto3;
|
|
209
212
|
Int64Value.typeName = "google.protobuf.Int64Value";
|
|
210
213
|
Int64Value.fields = proto3.util.newFieldList(() => [
|
|
211
|
-
|
|
214
|
+
{ no: 1, name: "value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
212
215
|
]);
|
|
213
216
|
Int64Value.fieldWrapper = {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
wrapField(value) {
|
|
218
|
+
return value instanceof Int64Value ? value : new Int64Value({ value });
|
|
219
|
+
},
|
|
220
|
+
unwrapField(value) {
|
|
221
|
+
return value.value;
|
|
222
|
+
}
|
|
220
223
|
};
|
|
221
224
|
/**
|
|
222
225
|
* Wrapper message for `uint64`.
|
|
@@ -226,56 +229,57 @@ Int64Value.fieldWrapper = {
|
|
|
226
229
|
* @generated from message google.protobuf.UInt64Value
|
|
227
230
|
*/
|
|
228
231
|
export class UInt64Value extends Message {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
232
|
+
constructor(data) {
|
|
233
|
+
super();
|
|
234
|
+
/**
|
|
235
|
+
* The uint64 value.
|
|
236
|
+
*
|
|
237
|
+
* @generated from field: uint64 value = 1;
|
|
238
|
+
*/
|
|
239
|
+
this.value = protoInt64.zero;
|
|
240
|
+
proto3.util.initPartial(data, this);
|
|
241
|
+
}
|
|
242
|
+
toJson(options) {
|
|
243
|
+
return proto3.json.writeScalar(ScalarType.UINT64, this.value, true);
|
|
244
|
+
}
|
|
245
|
+
fromJson(json, options) {
|
|
246
|
+
try {
|
|
247
|
+
this.value = proto3.json.readScalar(ScalarType.UINT64, json);
|
|
248
|
+
}
|
|
249
|
+
catch (e) {
|
|
250
|
+
let m = `cannot decode message google.protobuf.UInt64Value from JSON"`;
|
|
251
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
252
|
+
m += `: ${e.message}`;
|
|
253
|
+
}
|
|
254
|
+
throw new Error(m);
|
|
255
|
+
}
|
|
256
|
+
return this;
|
|
257
|
+
}
|
|
258
|
+
static fromBinary(bytes, options) {
|
|
259
|
+
return new UInt64Value().fromBinary(bytes, options);
|
|
260
|
+
}
|
|
261
|
+
static fromJson(jsonValue, options) {
|
|
262
|
+
return new UInt64Value().fromJson(jsonValue, options);
|
|
263
|
+
}
|
|
264
|
+
static fromJsonString(jsonString, options) {
|
|
265
|
+
return new UInt64Value().fromJsonString(jsonString, options);
|
|
266
|
+
}
|
|
267
|
+
static equals(a, b) {
|
|
268
|
+
return proto3.util.equals(UInt64Value, a, b);
|
|
269
|
+
}
|
|
266
270
|
}
|
|
267
271
|
UInt64Value.runtime = proto3;
|
|
268
272
|
UInt64Value.typeName = "google.protobuf.UInt64Value";
|
|
269
273
|
UInt64Value.fields = proto3.util.newFieldList(() => [
|
|
270
|
-
|
|
274
|
+
{ no: 1, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
271
275
|
]);
|
|
272
276
|
UInt64Value.fieldWrapper = {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
wrapField(value) {
|
|
278
|
+
return value instanceof UInt64Value ? value : new UInt64Value({ value });
|
|
279
|
+
},
|
|
280
|
+
unwrapField(value) {
|
|
281
|
+
return value.value;
|
|
282
|
+
}
|
|
279
283
|
};
|
|
280
284
|
/**
|
|
281
285
|
* Wrapper message for `int32`.
|
|
@@ -285,56 +289,57 @@ UInt64Value.fieldWrapper = {
|
|
|
285
289
|
* @generated from message google.protobuf.Int32Value
|
|
286
290
|
*/
|
|
287
291
|
export class Int32Value extends Message {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
292
|
+
constructor(data) {
|
|
293
|
+
super();
|
|
294
|
+
/**
|
|
295
|
+
* The int32 value.
|
|
296
|
+
*
|
|
297
|
+
* @generated from field: int32 value = 1;
|
|
298
|
+
*/
|
|
299
|
+
this.value = 0;
|
|
300
|
+
proto3.util.initPartial(data, this);
|
|
301
|
+
}
|
|
302
|
+
toJson(options) {
|
|
303
|
+
return proto3.json.writeScalar(ScalarType.INT32, this.value, true);
|
|
304
|
+
}
|
|
305
|
+
fromJson(json, options) {
|
|
306
|
+
try {
|
|
307
|
+
this.value = proto3.json.readScalar(ScalarType.INT32, json);
|
|
308
|
+
}
|
|
309
|
+
catch (e) {
|
|
310
|
+
let m = `cannot decode message google.protobuf.Int32Value from JSON"`;
|
|
311
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
312
|
+
m += `: ${e.message}`;
|
|
313
|
+
}
|
|
314
|
+
throw new Error(m);
|
|
315
|
+
}
|
|
316
|
+
return this;
|
|
317
|
+
}
|
|
318
|
+
static fromBinary(bytes, options) {
|
|
319
|
+
return new Int32Value().fromBinary(bytes, options);
|
|
320
|
+
}
|
|
321
|
+
static fromJson(jsonValue, options) {
|
|
322
|
+
return new Int32Value().fromJson(jsonValue, options);
|
|
323
|
+
}
|
|
324
|
+
static fromJsonString(jsonString, options) {
|
|
325
|
+
return new Int32Value().fromJsonString(jsonString, options);
|
|
326
|
+
}
|
|
327
|
+
static equals(a, b) {
|
|
328
|
+
return proto3.util.equals(Int32Value, a, b);
|
|
329
|
+
}
|
|
325
330
|
}
|
|
326
331
|
Int32Value.runtime = proto3;
|
|
327
332
|
Int32Value.typeName = "google.protobuf.Int32Value";
|
|
328
333
|
Int32Value.fields = proto3.util.newFieldList(() => [
|
|
329
|
-
|
|
334
|
+
{ no: 1, name: "value", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
330
335
|
]);
|
|
331
336
|
Int32Value.fieldWrapper = {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
wrapField(value) {
|
|
338
|
+
return value instanceof Int32Value ? value : new Int32Value({ value });
|
|
339
|
+
},
|
|
340
|
+
unwrapField(value) {
|
|
341
|
+
return value.value;
|
|
342
|
+
}
|
|
338
343
|
};
|
|
339
344
|
/**
|
|
340
345
|
* Wrapper message for `uint32`.
|
|
@@ -344,56 +349,57 @@ Int32Value.fieldWrapper = {
|
|
|
344
349
|
* @generated from message google.protobuf.UInt32Value
|
|
345
350
|
*/
|
|
346
351
|
export class UInt32Value extends Message {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
352
|
+
constructor(data) {
|
|
353
|
+
super();
|
|
354
|
+
/**
|
|
355
|
+
* The uint32 value.
|
|
356
|
+
*
|
|
357
|
+
* @generated from field: uint32 value = 1;
|
|
358
|
+
*/
|
|
359
|
+
this.value = 0;
|
|
360
|
+
proto3.util.initPartial(data, this);
|
|
361
|
+
}
|
|
362
|
+
toJson(options) {
|
|
363
|
+
return proto3.json.writeScalar(ScalarType.UINT32, this.value, true);
|
|
364
|
+
}
|
|
365
|
+
fromJson(json, options) {
|
|
366
|
+
try {
|
|
367
|
+
this.value = proto3.json.readScalar(ScalarType.UINT32, json);
|
|
368
|
+
}
|
|
369
|
+
catch (e) {
|
|
370
|
+
let m = `cannot decode message google.protobuf.UInt32Value from JSON"`;
|
|
371
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
372
|
+
m += `: ${e.message}`;
|
|
373
|
+
}
|
|
374
|
+
throw new Error(m);
|
|
375
|
+
}
|
|
376
|
+
return this;
|
|
377
|
+
}
|
|
378
|
+
static fromBinary(bytes, options) {
|
|
379
|
+
return new UInt32Value().fromBinary(bytes, options);
|
|
380
|
+
}
|
|
381
|
+
static fromJson(jsonValue, options) {
|
|
382
|
+
return new UInt32Value().fromJson(jsonValue, options);
|
|
383
|
+
}
|
|
384
|
+
static fromJsonString(jsonString, options) {
|
|
385
|
+
return new UInt32Value().fromJsonString(jsonString, options);
|
|
386
|
+
}
|
|
387
|
+
static equals(a, b) {
|
|
388
|
+
return proto3.util.equals(UInt32Value, a, b);
|
|
389
|
+
}
|
|
384
390
|
}
|
|
385
391
|
UInt32Value.runtime = proto3;
|
|
386
392
|
UInt32Value.typeName = "google.protobuf.UInt32Value";
|
|
387
393
|
UInt32Value.fields = proto3.util.newFieldList(() => [
|
|
388
|
-
|
|
394
|
+
{ no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
389
395
|
]);
|
|
390
396
|
UInt32Value.fieldWrapper = {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
+
wrapField(value) {
|
|
398
|
+
return value instanceof UInt32Value ? value : new UInt32Value({ value });
|
|
399
|
+
},
|
|
400
|
+
unwrapField(value) {
|
|
401
|
+
return value.value;
|
|
402
|
+
}
|
|
397
403
|
};
|
|
398
404
|
/**
|
|
399
405
|
* Wrapper message for `bool`.
|
|
@@ -403,56 +409,57 @@ UInt32Value.fieldWrapper = {
|
|
|
403
409
|
* @generated from message google.protobuf.BoolValue
|
|
404
410
|
*/
|
|
405
411
|
export class BoolValue extends Message {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
412
|
+
constructor(data) {
|
|
413
|
+
super();
|
|
414
|
+
/**
|
|
415
|
+
* The bool value.
|
|
416
|
+
*
|
|
417
|
+
* @generated from field: bool value = 1;
|
|
418
|
+
*/
|
|
419
|
+
this.value = false;
|
|
420
|
+
proto3.util.initPartial(data, this);
|
|
421
|
+
}
|
|
422
|
+
toJson(options) {
|
|
423
|
+
return proto3.json.writeScalar(ScalarType.BOOL, this.value, true);
|
|
424
|
+
}
|
|
425
|
+
fromJson(json, options) {
|
|
426
|
+
try {
|
|
427
|
+
this.value = proto3.json.readScalar(ScalarType.BOOL, json);
|
|
428
|
+
}
|
|
429
|
+
catch (e) {
|
|
430
|
+
let m = `cannot decode message google.protobuf.BoolValue from JSON"`;
|
|
431
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
432
|
+
m += `: ${e.message}`;
|
|
433
|
+
}
|
|
434
|
+
throw new Error(m);
|
|
435
|
+
}
|
|
436
|
+
return this;
|
|
437
|
+
}
|
|
438
|
+
static fromBinary(bytes, options) {
|
|
439
|
+
return new BoolValue().fromBinary(bytes, options);
|
|
440
|
+
}
|
|
441
|
+
static fromJson(jsonValue, options) {
|
|
442
|
+
return new BoolValue().fromJson(jsonValue, options);
|
|
443
|
+
}
|
|
444
|
+
static fromJsonString(jsonString, options) {
|
|
445
|
+
return new BoolValue().fromJsonString(jsonString, options);
|
|
446
|
+
}
|
|
447
|
+
static equals(a, b) {
|
|
448
|
+
return proto3.util.equals(BoolValue, a, b);
|
|
449
|
+
}
|
|
443
450
|
}
|
|
444
451
|
BoolValue.runtime = proto3;
|
|
445
452
|
BoolValue.typeName = "google.protobuf.BoolValue";
|
|
446
453
|
BoolValue.fields = proto3.util.newFieldList(() => [
|
|
447
|
-
|
|
454
|
+
{ no: 1, name: "value", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
448
455
|
]);
|
|
449
456
|
BoolValue.fieldWrapper = {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
457
|
+
wrapField(value) {
|
|
458
|
+
return value instanceof BoolValue ? value : new BoolValue({ value });
|
|
459
|
+
},
|
|
460
|
+
unwrapField(value) {
|
|
461
|
+
return value.value;
|
|
462
|
+
}
|
|
456
463
|
};
|
|
457
464
|
/**
|
|
458
465
|
* Wrapper message for `string`.
|
|
@@ -462,56 +469,57 @@ BoolValue.fieldWrapper = {
|
|
|
462
469
|
* @generated from message google.protobuf.StringValue
|
|
463
470
|
*/
|
|
464
471
|
export class StringValue extends Message {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
472
|
+
constructor(data) {
|
|
473
|
+
super();
|
|
474
|
+
/**
|
|
475
|
+
* The string value.
|
|
476
|
+
*
|
|
477
|
+
* @generated from field: string value = 1;
|
|
478
|
+
*/
|
|
479
|
+
this.value = "";
|
|
480
|
+
proto3.util.initPartial(data, this);
|
|
481
|
+
}
|
|
482
|
+
toJson(options) {
|
|
483
|
+
return proto3.json.writeScalar(ScalarType.STRING, this.value, true);
|
|
484
|
+
}
|
|
485
|
+
fromJson(json, options) {
|
|
486
|
+
try {
|
|
487
|
+
this.value = proto3.json.readScalar(ScalarType.STRING, json);
|
|
488
|
+
}
|
|
489
|
+
catch (e) {
|
|
490
|
+
let m = `cannot decode message google.protobuf.StringValue from JSON"`;
|
|
491
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
492
|
+
m += `: ${e.message}`;
|
|
493
|
+
}
|
|
494
|
+
throw new Error(m);
|
|
495
|
+
}
|
|
496
|
+
return this;
|
|
497
|
+
}
|
|
498
|
+
static fromBinary(bytes, options) {
|
|
499
|
+
return new StringValue().fromBinary(bytes, options);
|
|
500
|
+
}
|
|
501
|
+
static fromJson(jsonValue, options) {
|
|
502
|
+
return new StringValue().fromJson(jsonValue, options);
|
|
503
|
+
}
|
|
504
|
+
static fromJsonString(jsonString, options) {
|
|
505
|
+
return new StringValue().fromJsonString(jsonString, options);
|
|
506
|
+
}
|
|
507
|
+
static equals(a, b) {
|
|
508
|
+
return proto3.util.equals(StringValue, a, b);
|
|
509
|
+
}
|
|
502
510
|
}
|
|
503
511
|
StringValue.runtime = proto3;
|
|
504
512
|
StringValue.typeName = "google.protobuf.StringValue";
|
|
505
513
|
StringValue.fields = proto3.util.newFieldList(() => [
|
|
506
|
-
|
|
514
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
507
515
|
]);
|
|
508
516
|
StringValue.fieldWrapper = {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
517
|
+
wrapField(value) {
|
|
518
|
+
return value instanceof StringValue ? value : new StringValue({ value });
|
|
519
|
+
},
|
|
520
|
+
unwrapField(value) {
|
|
521
|
+
return value.value;
|
|
522
|
+
}
|
|
515
523
|
};
|
|
516
524
|
/**
|
|
517
525
|
* Wrapper message for `bytes`.
|
|
@@ -521,54 +529,55 @@ StringValue.fieldWrapper = {
|
|
|
521
529
|
* @generated from message google.protobuf.BytesValue
|
|
522
530
|
*/
|
|
523
531
|
export class BytesValue extends Message {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
532
|
+
constructor(data) {
|
|
533
|
+
super();
|
|
534
|
+
/**
|
|
535
|
+
* The bytes value.
|
|
536
|
+
*
|
|
537
|
+
* @generated from field: bytes value = 1;
|
|
538
|
+
*/
|
|
539
|
+
this.value = new Uint8Array(0);
|
|
540
|
+
proto3.util.initPartial(data, this);
|
|
541
|
+
}
|
|
542
|
+
toJson(options) {
|
|
543
|
+
return proto3.json.writeScalar(ScalarType.BYTES, this.value, true);
|
|
544
|
+
}
|
|
545
|
+
fromJson(json, options) {
|
|
546
|
+
try {
|
|
547
|
+
this.value = proto3.json.readScalar(ScalarType.BYTES, json);
|
|
548
|
+
}
|
|
549
|
+
catch (e) {
|
|
550
|
+
let m = `cannot decode message google.protobuf.BytesValue from JSON"`;
|
|
551
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
552
|
+
m += `: ${e.message}`;
|
|
553
|
+
}
|
|
554
|
+
throw new Error(m);
|
|
555
|
+
}
|
|
556
|
+
return this;
|
|
557
|
+
}
|
|
558
|
+
static fromBinary(bytes, options) {
|
|
559
|
+
return new BytesValue().fromBinary(bytes, options);
|
|
560
|
+
}
|
|
561
|
+
static fromJson(jsonValue, options) {
|
|
562
|
+
return new BytesValue().fromJson(jsonValue, options);
|
|
563
|
+
}
|
|
564
|
+
static fromJsonString(jsonString, options) {
|
|
565
|
+
return new BytesValue().fromJsonString(jsonString, options);
|
|
566
|
+
}
|
|
567
|
+
static equals(a, b) {
|
|
568
|
+
return proto3.util.equals(BytesValue, a, b);
|
|
569
|
+
}
|
|
561
570
|
}
|
|
562
571
|
BytesValue.runtime = proto3;
|
|
563
572
|
BytesValue.typeName = "google.protobuf.BytesValue";
|
|
564
573
|
BytesValue.fields = proto3.util.newFieldList(() => [
|
|
565
|
-
|
|
574
|
+
{ no: 1, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
566
575
|
]);
|
|
567
576
|
BytesValue.fieldWrapper = {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
577
|
+
wrapField(value) {
|
|
578
|
+
return value instanceof BytesValue ? value : new BytesValue({ value });
|
|
579
|
+
},
|
|
580
|
+
unwrapField(value) {
|
|
581
|
+
return value.value;
|
|
582
|
+
}
|
|
574
583
|
};
|