@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/compiler/plugin.proto (package google.protobuf.compiler, syntax proto2)
|
|
4
4
|
//
|
|
5
5
|
// Protocol Buffers - Google's data interchange format
|
|
@@ -54,54 +54,30 @@ import { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor_pb.js";
|
|
|
54
54
|
* @generated from message google.protobuf.compiler.Version
|
|
55
55
|
*/
|
|
56
56
|
export class Version extends Message {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
57
|
+
constructor(data) {
|
|
58
|
+
super();
|
|
59
|
+
proto2.util.initPartial(data, this);
|
|
60
|
+
}
|
|
61
|
+
static fromBinary(bytes, options) {
|
|
62
|
+
return new Version().fromBinary(bytes, options);
|
|
63
|
+
}
|
|
64
|
+
static fromJson(jsonValue, options) {
|
|
65
|
+
return new Version().fromJson(jsonValue, options);
|
|
66
|
+
}
|
|
67
|
+
static fromJsonString(jsonString, options) {
|
|
68
|
+
return new Version().fromJsonString(jsonString, options);
|
|
69
|
+
}
|
|
70
|
+
static equals(a, b) {
|
|
71
|
+
return proto2.util.equals(Version, a, b);
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
Version.runtime = proto2;
|
|
75
75
|
Version.typeName = "google.protobuf.compiler.Version";
|
|
76
76
|
Version.fields = proto2.util.newFieldList(() => [
|
|
77
|
-
|
|
78
|
-
no:
|
|
79
|
-
name: "
|
|
80
|
-
kind: "scalar",
|
|
81
|
-
T: 5 /* ScalarType.INT32 */,
|
|
82
|
-
opt: true,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
no: 2,
|
|
86
|
-
name: "minor",
|
|
87
|
-
kind: "scalar",
|
|
88
|
-
T: 5 /* ScalarType.INT32 */,
|
|
89
|
-
opt: true,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
no: 3,
|
|
93
|
-
name: "patch",
|
|
94
|
-
kind: "scalar",
|
|
95
|
-
T: 5 /* ScalarType.INT32 */,
|
|
96
|
-
opt: true,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
no: 4,
|
|
100
|
-
name: "suffix",
|
|
101
|
-
kind: "scalar",
|
|
102
|
-
T: 9 /* ScalarType.STRING */,
|
|
103
|
-
opt: true,
|
|
104
|
-
},
|
|
77
|
+
{ no: 1, name: "major", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
78
|
+
{ no: 2, name: "minor", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
79
|
+
{ no: 3, name: "patch", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
80
|
+
{ no: 4, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
105
81
|
]);
|
|
106
82
|
/**
|
|
107
83
|
* An encoded CodeGeneratorRequest is written to the plugin's stdin.
|
|
@@ -109,75 +85,57 @@ Version.fields = proto2.util.newFieldList(() => [
|
|
|
109
85
|
* @generated from message google.protobuf.compiler.CodeGeneratorRequest
|
|
110
86
|
*/
|
|
111
87
|
export class CodeGeneratorRequest extends Message {
|
|
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
|
-
|
|
88
|
+
constructor(data) {
|
|
89
|
+
super();
|
|
90
|
+
/**
|
|
91
|
+
* The .proto files that were explicitly listed on the command-line. The
|
|
92
|
+
* code generator should generate code only for these files. Each file's
|
|
93
|
+
* descriptor will be included in proto_file, below.
|
|
94
|
+
*
|
|
95
|
+
* @generated from field: repeated string file_to_generate = 1;
|
|
96
|
+
*/
|
|
97
|
+
this.fileToGenerate = [];
|
|
98
|
+
/**
|
|
99
|
+
* FileDescriptorProtos for all files in files_to_generate and everything
|
|
100
|
+
* they import. The files will appear in topological order, so each file
|
|
101
|
+
* appears before any file that imports it.
|
|
102
|
+
*
|
|
103
|
+
* protoc guarantees that all proto_files will be written after
|
|
104
|
+
* the fields above, even though this is not technically guaranteed by the
|
|
105
|
+
* protobuf wire format. This theoretically could allow a plugin to stream
|
|
106
|
+
* in the FileDescriptorProtos and handle them one by one rather than read
|
|
107
|
+
* the entire set into memory at once. However, as of this writing, this
|
|
108
|
+
* is not similarly optimized on protoc's end -- it will store all fields in
|
|
109
|
+
* memory at once before sending them to the plugin.
|
|
110
|
+
*
|
|
111
|
+
* Type names of fields and extensions in the FileDescriptorProto are always
|
|
112
|
+
* fully qualified.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
|
|
115
|
+
*/
|
|
116
|
+
this.protoFile = [];
|
|
117
|
+
proto2.util.initPartial(data, this);
|
|
118
|
+
}
|
|
119
|
+
static fromBinary(bytes, options) {
|
|
120
|
+
return new CodeGeneratorRequest().fromBinary(bytes, options);
|
|
121
|
+
}
|
|
122
|
+
static fromJson(jsonValue, options) {
|
|
123
|
+
return new CodeGeneratorRequest().fromJson(jsonValue, options);
|
|
124
|
+
}
|
|
125
|
+
static fromJsonString(jsonString, options) {
|
|
126
|
+
return new CodeGeneratorRequest().fromJsonString(jsonString, options);
|
|
127
|
+
}
|
|
128
|
+
static equals(a, b) {
|
|
129
|
+
return proto2.util.equals(CodeGeneratorRequest, a, b);
|
|
130
|
+
}
|
|
155
131
|
}
|
|
156
132
|
CodeGeneratorRequest.runtime = proto2;
|
|
157
133
|
CodeGeneratorRequest.typeName = "google.protobuf.compiler.CodeGeneratorRequest";
|
|
158
134
|
CodeGeneratorRequest.fields = proto2.util.newFieldList(() => [
|
|
159
|
-
|
|
160
|
-
no:
|
|
161
|
-
name: "
|
|
162
|
-
kind: "
|
|
163
|
-
T: 9 /* ScalarType.STRING */,
|
|
164
|
-
repeated: true,
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
no: 2,
|
|
168
|
-
name: "parameter",
|
|
169
|
-
kind: "scalar",
|
|
170
|
-
T: 9 /* ScalarType.STRING */,
|
|
171
|
-
opt: true,
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
no: 15,
|
|
175
|
-
name: "proto_file",
|
|
176
|
-
kind: "message",
|
|
177
|
-
T: FileDescriptorProto,
|
|
178
|
-
repeated: true,
|
|
179
|
-
},
|
|
180
|
-
{ no: 3, name: "compiler_version", kind: "message", T: Version, opt: true },
|
|
135
|
+
{ no: 1, name: "file_to_generate", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
136
|
+
{ no: 2, name: "parameter", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
137
|
+
{ no: 15, name: "proto_file", kind: "message", T: FileDescriptorProto, repeated: true },
|
|
138
|
+
{ no: 3, name: "compiler_version", kind: "message", T: Version, opt: true },
|
|
181
139
|
]);
|
|
182
140
|
/**
|
|
183
141
|
* The plugin writes an encoded CodeGeneratorResponse to stdout.
|
|
@@ -185,52 +143,33 @@ CodeGeneratorRequest.fields = proto2.util.newFieldList(() => [
|
|
|
185
143
|
* @generated from message google.protobuf.compiler.CodeGeneratorResponse
|
|
186
144
|
*/
|
|
187
145
|
export class CodeGeneratorResponse extends Message {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
146
|
+
constructor(data) {
|
|
147
|
+
super();
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
|
|
150
|
+
*/
|
|
151
|
+
this.file = [];
|
|
152
|
+
proto2.util.initPartial(data, this);
|
|
153
|
+
}
|
|
154
|
+
static fromBinary(bytes, options) {
|
|
155
|
+
return new CodeGeneratorResponse().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
static fromJson(jsonValue, options) {
|
|
158
|
+
return new CodeGeneratorResponse().fromJson(jsonValue, options);
|
|
159
|
+
}
|
|
160
|
+
static fromJsonString(jsonString, options) {
|
|
161
|
+
return new CodeGeneratorResponse().fromJsonString(jsonString, options);
|
|
162
|
+
}
|
|
163
|
+
static equals(a, b) {
|
|
164
|
+
return proto2.util.equals(CodeGeneratorResponse, a, b);
|
|
165
|
+
}
|
|
208
166
|
}
|
|
209
167
|
CodeGeneratorResponse.runtime = proto2;
|
|
210
|
-
CodeGeneratorResponse.typeName =
|
|
211
|
-
"google.protobuf.compiler.CodeGeneratorResponse";
|
|
168
|
+
CodeGeneratorResponse.typeName = "google.protobuf.compiler.CodeGeneratorResponse";
|
|
212
169
|
CodeGeneratorResponse.fields = proto2.util.newFieldList(() => [
|
|
213
|
-
|
|
214
|
-
no:
|
|
215
|
-
name: "
|
|
216
|
-
kind: "scalar",
|
|
217
|
-
T: 9 /* ScalarType.STRING */,
|
|
218
|
-
opt: true,
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
no: 2,
|
|
222
|
-
name: "supported_features",
|
|
223
|
-
kind: "scalar",
|
|
224
|
-
T: 4 /* ScalarType.UINT64 */,
|
|
225
|
-
opt: true,
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
no: 15,
|
|
229
|
-
name: "file",
|
|
230
|
-
kind: "message",
|
|
231
|
-
T: CodeGeneratorResponse_File,
|
|
232
|
-
repeated: true,
|
|
233
|
-
},
|
|
170
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
171
|
+
{ no: 2, name: "supported_features", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
172
|
+
{ no: 15, name: "file", kind: "message", T: CodeGeneratorResponse_File, repeated: true },
|
|
234
173
|
]);
|
|
235
174
|
/**
|
|
236
175
|
* Sync with code_generator.h.
|
|
@@ -239,80 +178,48 @@ CodeGeneratorResponse.fields = proto2.util.newFieldList(() => [
|
|
|
239
178
|
*/
|
|
240
179
|
export var CodeGeneratorResponse_Feature;
|
|
241
180
|
(function (CodeGeneratorResponse_Feature) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
CodeGeneratorResponse_Feature[
|
|
251
|
-
(CodeGeneratorResponse_Feature["PROTO3_OPTIONAL"] = 1)
|
|
252
|
-
] = "PROTO3_OPTIONAL";
|
|
181
|
+
/**
|
|
182
|
+
* @generated from enum value: FEATURE_NONE = 0;
|
|
183
|
+
*/
|
|
184
|
+
CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["NONE"] = 0] = "NONE";
|
|
185
|
+
/**
|
|
186
|
+
* @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1;
|
|
187
|
+
*/
|
|
188
|
+
CodeGeneratorResponse_Feature[CodeGeneratorResponse_Feature["PROTO3_OPTIONAL"] = 1] = "PROTO3_OPTIONAL";
|
|
253
189
|
})(CodeGeneratorResponse_Feature || (CodeGeneratorResponse_Feature = {}));
|
|
254
190
|
// Retrieve enum metadata with: proto2.getEnumType(CodeGeneratorResponse_Feature)
|
|
255
|
-
proto2.util.setEnumType(
|
|
256
|
-
CodeGeneratorResponse_Feature,
|
|
257
|
-
"google.protobuf.compiler.CodeGeneratorResponse.Feature",
|
|
258
|
-
[
|
|
191
|
+
proto2.util.setEnumType(CodeGeneratorResponse_Feature, "google.protobuf.compiler.CodeGeneratorResponse.Feature", [
|
|
259
192
|
{ no: 0, name: "FEATURE_NONE" },
|
|
260
193
|
{ no: 1, name: "FEATURE_PROTO3_OPTIONAL" },
|
|
261
|
-
|
|
262
|
-
);
|
|
194
|
+
]);
|
|
263
195
|
/**
|
|
264
196
|
* Represents a single generated file.
|
|
265
197
|
*
|
|
266
198
|
* @generated from message google.protobuf.compiler.CodeGeneratorResponse.File
|
|
267
199
|
*/
|
|
268
200
|
export class CodeGeneratorResponse_File extends Message {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
201
|
+
constructor(data) {
|
|
202
|
+
super();
|
|
203
|
+
proto2.util.initPartial(data, this);
|
|
204
|
+
}
|
|
205
|
+
static fromBinary(bytes, options) {
|
|
206
|
+
return new CodeGeneratorResponse_File().fromBinary(bytes, options);
|
|
207
|
+
}
|
|
208
|
+
static fromJson(jsonValue, options) {
|
|
209
|
+
return new CodeGeneratorResponse_File().fromJson(jsonValue, options);
|
|
210
|
+
}
|
|
211
|
+
static fromJsonString(jsonString, options) {
|
|
212
|
+
return new CodeGeneratorResponse_File().fromJsonString(jsonString, options);
|
|
213
|
+
}
|
|
214
|
+
static equals(a, b) {
|
|
215
|
+
return proto2.util.equals(CodeGeneratorResponse_File, a, b);
|
|
216
|
+
}
|
|
285
217
|
}
|
|
286
218
|
CodeGeneratorResponse_File.runtime = proto2;
|
|
287
|
-
CodeGeneratorResponse_File.typeName =
|
|
288
|
-
"google.protobuf.compiler.CodeGeneratorResponse.File";
|
|
219
|
+
CodeGeneratorResponse_File.typeName = "google.protobuf.compiler.CodeGeneratorResponse.File";
|
|
289
220
|
CodeGeneratorResponse_File.fields = proto2.util.newFieldList(() => [
|
|
290
|
-
|
|
291
|
-
no:
|
|
292
|
-
name: "
|
|
293
|
-
kind: "
|
|
294
|
-
T: 9 /* ScalarType.STRING */,
|
|
295
|
-
opt: true,
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
no: 2,
|
|
299
|
-
name: "insertion_point",
|
|
300
|
-
kind: "scalar",
|
|
301
|
-
T: 9 /* ScalarType.STRING */,
|
|
302
|
-
opt: true,
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
no: 15,
|
|
306
|
-
name: "content",
|
|
307
|
-
kind: "scalar",
|
|
308
|
-
T: 9 /* ScalarType.STRING */,
|
|
309
|
-
opt: true,
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
no: 16,
|
|
313
|
-
name: "generated_code_info",
|
|
314
|
-
kind: "message",
|
|
315
|
-
T: GeneratedCodeInfo,
|
|
316
|
-
opt: true,
|
|
317
|
-
},
|
|
221
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
222
|
+
{ no: 2, name: "insertion_point", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
223
|
+
{ no: 15, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
224
|
+
{ no: 16, name: "generated_code_info", kind: "message", T: GeneratedCodeInfo, opt: true },
|
|
318
225
|
]);
|