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