@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,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
|
import { SourceContext } from "./source_context_pb.js";
|
|
11
4
|
import { Any } from "./any_pb.js";
|
|
@@ -15,18 +8,18 @@ import { Any } from "./any_pb.js";
|
|
|
15
8
|
* @generated from enum google.protobuf.Syntax
|
|
16
9
|
*/
|
|
17
10
|
export declare enum Syntax {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Syntax `proto2`.
|
|
13
|
+
*
|
|
14
|
+
* @generated from enum value: SYNTAX_PROTO2 = 0;
|
|
15
|
+
*/
|
|
16
|
+
PROTO2 = 0,
|
|
17
|
+
/**
|
|
18
|
+
* Syntax `proto3`.
|
|
19
|
+
*
|
|
20
|
+
* @generated from enum value: SYNTAX_PROTO3 = 1;
|
|
21
|
+
*/
|
|
22
|
+
PROTO3 = 1
|
|
30
23
|
}
|
|
31
24
|
/**
|
|
32
25
|
* A protocol buffer message type.
|
|
@@ -34,62 +27,50 @@ export declare enum Syntax {
|
|
|
34
27
|
* @generated from message google.protobuf.Type
|
|
35
28
|
*/
|
|
36
29
|
export declare class Type extends Message<Type> {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
options?: Partial<
|
|
80
|
-
|
|
81
|
-
static fromJson(
|
|
82
|
-
jsonValue: JsonValue,
|
|
83
|
-
options?: Partial<JsonReadOptions>
|
|
84
|
-
): Type;
|
|
85
|
-
static fromJsonString(
|
|
86
|
-
jsonString: string,
|
|
87
|
-
options?: Partial<JsonReadOptions>
|
|
88
|
-
): Type;
|
|
89
|
-
static equals(
|
|
90
|
-
a: Type | PlainMessage<Type> | undefined,
|
|
91
|
-
b: Type | PlainMessage<Type> | undefined
|
|
92
|
-
): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The fully qualified message name.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string name = 1;
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* The list of fields.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: repeated google.protobuf.Field fields = 2;
|
|
40
|
+
*/
|
|
41
|
+
fields: Field[];
|
|
42
|
+
/**
|
|
43
|
+
* The list of types appearing in `oneof` definitions in this type.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: repeated string oneofs = 3;
|
|
46
|
+
*/
|
|
47
|
+
oneofs: string[];
|
|
48
|
+
/**
|
|
49
|
+
* The protocol buffer options.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: repeated google.protobuf.Option options = 4;
|
|
52
|
+
*/
|
|
53
|
+
options: Option[];
|
|
54
|
+
/**
|
|
55
|
+
* The source context.
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: google.protobuf.SourceContext source_context = 5;
|
|
58
|
+
*/
|
|
59
|
+
sourceContext?: SourceContext;
|
|
60
|
+
/**
|
|
61
|
+
* The source syntax.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: google.protobuf.Syntax syntax = 6;
|
|
64
|
+
*/
|
|
65
|
+
syntax: Syntax;
|
|
66
|
+
constructor(data?: PartialMessage<Type>);
|
|
67
|
+
static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
|
|
68
|
+
static readonly typeName = "google.protobuf.Type";
|
|
69
|
+
static readonly fields: FieldList;
|
|
70
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Type;
|
|
71
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Type;
|
|
72
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Type;
|
|
73
|
+
static equals(a: Type | PlainMessage<Type> | undefined, b: Type | PlainMessage<Type> | undefined): boolean;
|
|
93
74
|
}
|
|
94
75
|
/**
|
|
95
76
|
* A single field of a message type.
|
|
@@ -97,88 +78,76 @@ export declare class Type extends Message<Type> {
|
|
|
97
78
|
* @generated from message google.protobuf.Field
|
|
98
79
|
*/
|
|
99
80
|
export declare class Field extends Message<Field> {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
options?: Partial<
|
|
169
|
-
|
|
170
|
-
static fromJson(
|
|
171
|
-
jsonValue: JsonValue,
|
|
172
|
-
options?: Partial<JsonReadOptions>
|
|
173
|
-
): Field;
|
|
174
|
-
static fromJsonString(
|
|
175
|
-
jsonString: string,
|
|
176
|
-
options?: Partial<JsonReadOptions>
|
|
177
|
-
): Field;
|
|
178
|
-
static equals(
|
|
179
|
-
a: Field | PlainMessage<Field> | undefined,
|
|
180
|
-
b: Field | PlainMessage<Field> | undefined
|
|
181
|
-
): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The field type.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: google.protobuf.Field.Kind kind = 1;
|
|
85
|
+
*/
|
|
86
|
+
kind: Field_Kind;
|
|
87
|
+
/**
|
|
88
|
+
* The field cardinality.
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: google.protobuf.Field.Cardinality cardinality = 2;
|
|
91
|
+
*/
|
|
92
|
+
cardinality: Field_Cardinality;
|
|
93
|
+
/**
|
|
94
|
+
* The field number.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: int32 number = 3;
|
|
97
|
+
*/
|
|
98
|
+
number: number;
|
|
99
|
+
/**
|
|
100
|
+
* The field name.
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: string name = 4;
|
|
103
|
+
*/
|
|
104
|
+
name: string;
|
|
105
|
+
/**
|
|
106
|
+
* The field type URL, without the scheme, for message or enumeration
|
|
107
|
+
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: string type_url = 6;
|
|
110
|
+
*/
|
|
111
|
+
typeUrl: string;
|
|
112
|
+
/**
|
|
113
|
+
* The index of the field type in `Type.oneofs`, for message or enumeration
|
|
114
|
+
* types. The first type has index 1; zero means the type is not in the list.
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: int32 oneof_index = 7;
|
|
117
|
+
*/
|
|
118
|
+
oneofIndex: number;
|
|
119
|
+
/**
|
|
120
|
+
* Whether to use alternative packed wire representation.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: bool packed = 8;
|
|
123
|
+
*/
|
|
124
|
+
packed: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The protocol buffer options.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: repeated google.protobuf.Option options = 9;
|
|
129
|
+
*/
|
|
130
|
+
options: Option[];
|
|
131
|
+
/**
|
|
132
|
+
* The field JSON name.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: string json_name = 10;
|
|
135
|
+
*/
|
|
136
|
+
jsonName: string;
|
|
137
|
+
/**
|
|
138
|
+
* The string value of the default value of this field. Proto2 syntax only.
|
|
139
|
+
*
|
|
140
|
+
* @generated from field: string default_value = 11;
|
|
141
|
+
*/
|
|
142
|
+
defaultValue: string;
|
|
143
|
+
constructor(data?: PartialMessage<Field>);
|
|
144
|
+
static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
|
|
145
|
+
static readonly typeName = "google.protobuf.Field";
|
|
146
|
+
static readonly fields: FieldList;
|
|
147
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Field;
|
|
148
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Field;
|
|
149
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Field;
|
|
150
|
+
static equals(a: Field | PlainMessage<Field> | undefined, b: Field | PlainMessage<Field> | undefined): boolean;
|
|
182
151
|
}
|
|
183
152
|
/**
|
|
184
153
|
* Basic field types.
|
|
@@ -186,120 +155,120 @@ export declare class Field extends Message<Field> {
|
|
|
186
155
|
* @generated from enum google.protobuf.Field.Kind
|
|
187
156
|
*/
|
|
188
157
|
export declare enum Field_Kind {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Field type unknown.
|
|
160
|
+
*
|
|
161
|
+
* @generated from enum value: TYPE_UNKNOWN = 0;
|
|
162
|
+
*/
|
|
163
|
+
TYPE_UNKNOWN = 0,
|
|
164
|
+
/**
|
|
165
|
+
* Field type double.
|
|
166
|
+
*
|
|
167
|
+
* @generated from enum value: TYPE_DOUBLE = 1;
|
|
168
|
+
*/
|
|
169
|
+
TYPE_DOUBLE = 1,
|
|
170
|
+
/**
|
|
171
|
+
* Field type float.
|
|
172
|
+
*
|
|
173
|
+
* @generated from enum value: TYPE_FLOAT = 2;
|
|
174
|
+
*/
|
|
175
|
+
TYPE_FLOAT = 2,
|
|
176
|
+
/**
|
|
177
|
+
* Field type int64.
|
|
178
|
+
*
|
|
179
|
+
* @generated from enum value: TYPE_INT64 = 3;
|
|
180
|
+
*/
|
|
181
|
+
TYPE_INT64 = 3,
|
|
182
|
+
/**
|
|
183
|
+
* Field type uint64.
|
|
184
|
+
*
|
|
185
|
+
* @generated from enum value: TYPE_UINT64 = 4;
|
|
186
|
+
*/
|
|
187
|
+
TYPE_UINT64 = 4,
|
|
188
|
+
/**
|
|
189
|
+
* Field type int32.
|
|
190
|
+
*
|
|
191
|
+
* @generated from enum value: TYPE_INT32 = 5;
|
|
192
|
+
*/
|
|
193
|
+
TYPE_INT32 = 5,
|
|
194
|
+
/**
|
|
195
|
+
* Field type fixed64.
|
|
196
|
+
*
|
|
197
|
+
* @generated from enum value: TYPE_FIXED64 = 6;
|
|
198
|
+
*/
|
|
199
|
+
TYPE_FIXED64 = 6,
|
|
200
|
+
/**
|
|
201
|
+
* Field type fixed32.
|
|
202
|
+
*
|
|
203
|
+
* @generated from enum value: TYPE_FIXED32 = 7;
|
|
204
|
+
*/
|
|
205
|
+
TYPE_FIXED32 = 7,
|
|
206
|
+
/**
|
|
207
|
+
* Field type bool.
|
|
208
|
+
*
|
|
209
|
+
* @generated from enum value: TYPE_BOOL = 8;
|
|
210
|
+
*/
|
|
211
|
+
TYPE_BOOL = 8,
|
|
212
|
+
/**
|
|
213
|
+
* Field type string.
|
|
214
|
+
*
|
|
215
|
+
* @generated from enum value: TYPE_STRING = 9;
|
|
216
|
+
*/
|
|
217
|
+
TYPE_STRING = 9,
|
|
218
|
+
/**
|
|
219
|
+
* Field type group. Proto2 syntax only, and deprecated.
|
|
220
|
+
*
|
|
221
|
+
* @generated from enum value: TYPE_GROUP = 10;
|
|
222
|
+
*/
|
|
223
|
+
TYPE_GROUP = 10,
|
|
224
|
+
/**
|
|
225
|
+
* Field type message.
|
|
226
|
+
*
|
|
227
|
+
* @generated from enum value: TYPE_MESSAGE = 11;
|
|
228
|
+
*/
|
|
229
|
+
TYPE_MESSAGE = 11,
|
|
230
|
+
/**
|
|
231
|
+
* Field type bytes.
|
|
232
|
+
*
|
|
233
|
+
* @generated from enum value: TYPE_BYTES = 12;
|
|
234
|
+
*/
|
|
235
|
+
TYPE_BYTES = 12,
|
|
236
|
+
/**
|
|
237
|
+
* Field type uint32.
|
|
238
|
+
*
|
|
239
|
+
* @generated from enum value: TYPE_UINT32 = 13;
|
|
240
|
+
*/
|
|
241
|
+
TYPE_UINT32 = 13,
|
|
242
|
+
/**
|
|
243
|
+
* Field type enum.
|
|
244
|
+
*
|
|
245
|
+
* @generated from enum value: TYPE_ENUM = 14;
|
|
246
|
+
*/
|
|
247
|
+
TYPE_ENUM = 14,
|
|
248
|
+
/**
|
|
249
|
+
* Field type sfixed32.
|
|
250
|
+
*
|
|
251
|
+
* @generated from enum value: TYPE_SFIXED32 = 15;
|
|
252
|
+
*/
|
|
253
|
+
TYPE_SFIXED32 = 15,
|
|
254
|
+
/**
|
|
255
|
+
* Field type sfixed64.
|
|
256
|
+
*
|
|
257
|
+
* @generated from enum value: TYPE_SFIXED64 = 16;
|
|
258
|
+
*/
|
|
259
|
+
TYPE_SFIXED64 = 16,
|
|
260
|
+
/**
|
|
261
|
+
* Field type sint32.
|
|
262
|
+
*
|
|
263
|
+
* @generated from enum value: TYPE_SINT32 = 17;
|
|
264
|
+
*/
|
|
265
|
+
TYPE_SINT32 = 17,
|
|
266
|
+
/**
|
|
267
|
+
* Field type sint64.
|
|
268
|
+
*
|
|
269
|
+
* @generated from enum value: TYPE_SINT64 = 18;
|
|
270
|
+
*/
|
|
271
|
+
TYPE_SINT64 = 18
|
|
303
272
|
}
|
|
304
273
|
/**
|
|
305
274
|
* Whether a field is optional, required, or repeated.
|
|
@@ -307,30 +276,30 @@ export declare enum Field_Kind {
|
|
|
307
276
|
* @generated from enum google.protobuf.Field.Cardinality
|
|
308
277
|
*/
|
|
309
278
|
export declare enum Field_Cardinality {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
279
|
+
/**
|
|
280
|
+
* For fields with unknown cardinality.
|
|
281
|
+
*
|
|
282
|
+
* @generated from enum value: CARDINALITY_UNKNOWN = 0;
|
|
283
|
+
*/
|
|
284
|
+
UNKNOWN = 0,
|
|
285
|
+
/**
|
|
286
|
+
* For optional fields.
|
|
287
|
+
*
|
|
288
|
+
* @generated from enum value: CARDINALITY_OPTIONAL = 1;
|
|
289
|
+
*/
|
|
290
|
+
OPTIONAL = 1,
|
|
291
|
+
/**
|
|
292
|
+
* For required fields. Proto2 syntax only.
|
|
293
|
+
*
|
|
294
|
+
* @generated from enum value: CARDINALITY_REQUIRED = 2;
|
|
295
|
+
*/
|
|
296
|
+
REQUIRED = 2,
|
|
297
|
+
/**
|
|
298
|
+
* For repeated fields.
|
|
299
|
+
*
|
|
300
|
+
* @generated from enum value: CARDINALITY_REPEATED = 3;
|
|
301
|
+
*/
|
|
302
|
+
REPEATED = 3
|
|
334
303
|
}
|
|
335
304
|
/**
|
|
336
305
|
* Enum type definition.
|
|
@@ -338,56 +307,44 @@ export declare enum Field_Cardinality {
|
|
|
338
307
|
* @generated from message google.protobuf.Enum
|
|
339
308
|
*/
|
|
340
309
|
export declare class Enum extends Message<Enum> {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
options?: Partial<
|
|
378
|
-
|
|
379
|
-
static fromJson(
|
|
380
|
-
jsonValue: JsonValue,
|
|
381
|
-
options?: Partial<JsonReadOptions>
|
|
382
|
-
): Enum;
|
|
383
|
-
static fromJsonString(
|
|
384
|
-
jsonString: string,
|
|
385
|
-
options?: Partial<JsonReadOptions>
|
|
386
|
-
): Enum;
|
|
387
|
-
static equals(
|
|
388
|
-
a: Enum | PlainMessage<Enum> | undefined,
|
|
389
|
-
b: Enum | PlainMessage<Enum> | undefined
|
|
390
|
-
): boolean;
|
|
310
|
+
/**
|
|
311
|
+
* Enum type name.
|
|
312
|
+
*
|
|
313
|
+
* @generated from field: string name = 1;
|
|
314
|
+
*/
|
|
315
|
+
name: string;
|
|
316
|
+
/**
|
|
317
|
+
* Enum value definitions.
|
|
318
|
+
*
|
|
319
|
+
* @generated from field: repeated google.protobuf.EnumValue enumvalue = 2;
|
|
320
|
+
*/
|
|
321
|
+
enumvalue: EnumValue[];
|
|
322
|
+
/**
|
|
323
|
+
* Protocol buffer options.
|
|
324
|
+
*
|
|
325
|
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
326
|
+
*/
|
|
327
|
+
options: Option[];
|
|
328
|
+
/**
|
|
329
|
+
* The source context.
|
|
330
|
+
*
|
|
331
|
+
* @generated from field: google.protobuf.SourceContext source_context = 4;
|
|
332
|
+
*/
|
|
333
|
+
sourceContext?: SourceContext;
|
|
334
|
+
/**
|
|
335
|
+
* The source syntax.
|
|
336
|
+
*
|
|
337
|
+
* @generated from field: google.protobuf.Syntax syntax = 5;
|
|
338
|
+
*/
|
|
339
|
+
syntax: Syntax;
|
|
340
|
+
constructor(data?: PartialMessage<Enum>);
|
|
341
|
+
static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
|
|
342
|
+
static readonly typeName = "google.protobuf.Enum";
|
|
343
|
+
static readonly fields: FieldList;
|
|
344
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Enum;
|
|
345
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Enum;
|
|
346
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Enum;
|
|
347
|
+
static equals(a: Enum | PlainMessage<Enum> | undefined, b: Enum | PlainMessage<Enum> | undefined): boolean;
|
|
391
348
|
}
|
|
392
349
|
/**
|
|
393
350
|
* Enum value definition.
|
|
@@ -395,44 +352,32 @@ export declare class Enum extends Message<Enum> {
|
|
|
395
352
|
* @generated from message google.protobuf.EnumValue
|
|
396
353
|
*/
|
|
397
354
|
export declare class EnumValue extends Message<EnumValue> {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
options?: Partial<
|
|
423
|
-
|
|
424
|
-
static fromJson(
|
|
425
|
-
jsonValue: JsonValue,
|
|
426
|
-
options?: Partial<JsonReadOptions>
|
|
427
|
-
): EnumValue;
|
|
428
|
-
static fromJsonString(
|
|
429
|
-
jsonString: string,
|
|
430
|
-
options?: Partial<JsonReadOptions>
|
|
431
|
-
): EnumValue;
|
|
432
|
-
static equals(
|
|
433
|
-
a: EnumValue | PlainMessage<EnumValue> | undefined,
|
|
434
|
-
b: EnumValue | PlainMessage<EnumValue> | undefined
|
|
435
|
-
): boolean;
|
|
355
|
+
/**
|
|
356
|
+
* Enum value name.
|
|
357
|
+
*
|
|
358
|
+
* @generated from field: string name = 1;
|
|
359
|
+
*/
|
|
360
|
+
name: string;
|
|
361
|
+
/**
|
|
362
|
+
* Enum value number.
|
|
363
|
+
*
|
|
364
|
+
* @generated from field: int32 number = 2;
|
|
365
|
+
*/
|
|
366
|
+
number: number;
|
|
367
|
+
/**
|
|
368
|
+
* Protocol buffer options.
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
371
|
+
*/
|
|
372
|
+
options: Option[];
|
|
373
|
+
constructor(data?: PartialMessage<EnumValue>);
|
|
374
|
+
static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
|
|
375
|
+
static readonly typeName = "google.protobuf.EnumValue";
|
|
376
|
+
static readonly fields: FieldList;
|
|
377
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValue;
|
|
378
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValue;
|
|
379
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValue;
|
|
380
|
+
static equals(a: EnumValue | PlainMessage<EnumValue> | undefined, b: EnumValue | PlainMessage<EnumValue> | undefined): boolean;
|
|
436
381
|
}
|
|
437
382
|
/**
|
|
438
383
|
* A protocol buffer option, which can be attached to a message, field,
|
|
@@ -441,42 +386,30 @@ export declare class EnumValue extends Message<EnumValue> {
|
|
|
441
386
|
* @generated from message google.protobuf.Option
|
|
442
387
|
*/
|
|
443
388
|
export declare class Option extends Message<Option> {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
options?: Partial<
|
|
469
|
-
|
|
470
|
-
static fromJson(
|
|
471
|
-
jsonValue: JsonValue,
|
|
472
|
-
options?: Partial<JsonReadOptions>
|
|
473
|
-
): Option;
|
|
474
|
-
static fromJsonString(
|
|
475
|
-
jsonString: string,
|
|
476
|
-
options?: Partial<JsonReadOptions>
|
|
477
|
-
): Option;
|
|
478
|
-
static equals(
|
|
479
|
-
a: Option | PlainMessage<Option> | undefined,
|
|
480
|
-
b: Option | PlainMessage<Option> | undefined
|
|
481
|
-
): boolean;
|
|
389
|
+
/**
|
|
390
|
+
* The option's name. For protobuf built-in options (options defined in
|
|
391
|
+
* descriptor.proto), this is the short name. For example, `"map_entry"`.
|
|
392
|
+
* For custom options, it should be the fully-qualified name. For example,
|
|
393
|
+
* `"google.api.http"`.
|
|
394
|
+
*
|
|
395
|
+
* @generated from field: string name = 1;
|
|
396
|
+
*/
|
|
397
|
+
name: string;
|
|
398
|
+
/**
|
|
399
|
+
* The option's value packed in an Any message. If the value is a primitive,
|
|
400
|
+
* the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
|
401
|
+
* should be used. If the value is an enum, it should be stored as an int32
|
|
402
|
+
* value using the google.protobuf.Int32Value type.
|
|
403
|
+
*
|
|
404
|
+
* @generated from field: google.protobuf.Any value = 2;
|
|
405
|
+
*/
|
|
406
|
+
value?: Any;
|
|
407
|
+
constructor(data?: PartialMessage<Option>);
|
|
408
|
+
static readonly runtime: import("../../private/proto-runtime.js").ProtoRuntime;
|
|
409
|
+
static readonly typeName = "google.protobuf.Option";
|
|
410
|
+
static readonly fields: FieldList;
|
|
411
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Option;
|
|
412
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Option;
|
|
413
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Option;
|
|
414
|
+
static equals(a: Option | PlainMessage<Option> | undefined, b: Option | PlainMessage<Option> | undefined): boolean;
|
|
482
415
|
}
|