@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/api.proto (package google.protobuf, syntax proto3)
|
|
5
5
|
//
|
|
6
6
|
// Protocol Buffers - Google's data interchange format
|
|
@@ -51,107 +51,91 @@ const source_context_pb_js_1 = require("./source_context_pb.js");
|
|
|
51
51
|
* @generated from message google.protobuf.Api
|
|
52
52
|
*/
|
|
53
53
|
class Api extends index_js_1.Message {
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
54
|
+
constructor(data) {
|
|
55
|
+
super();
|
|
56
|
+
/**
|
|
57
|
+
* The fully qualified name of this interface, including package name
|
|
58
|
+
* followed by the interface's simple name.
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string name = 1;
|
|
61
|
+
*/
|
|
62
|
+
this.name = "";
|
|
63
|
+
/**
|
|
64
|
+
* The methods of this interface, in unspecified order.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: repeated google.protobuf.Method methods = 2;
|
|
67
|
+
*/
|
|
68
|
+
this.methods = [];
|
|
69
|
+
/**
|
|
70
|
+
* Any metadata attached to the interface.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
73
|
+
*/
|
|
74
|
+
this.options = [];
|
|
75
|
+
/**
|
|
76
|
+
* A version string for this interface. If specified, must have the form
|
|
77
|
+
* `major-version.minor-version`, as in `1.10`. If the minor version is
|
|
78
|
+
* omitted, it defaults to zero. If the entire version field is empty, the
|
|
79
|
+
* major version is derived from the package name, as outlined below. If the
|
|
80
|
+
* field is not empty, the version in the package name will be verified to be
|
|
81
|
+
* consistent with what is provided here.
|
|
82
|
+
*
|
|
83
|
+
* The versioning schema uses [semantic
|
|
84
|
+
* versioning](http://semver.org) where the major version number
|
|
85
|
+
* indicates a breaking change and the minor version an additive,
|
|
86
|
+
* non-breaking change. Both version numbers are signals to users
|
|
87
|
+
* what to expect from different versions, and should be carefully
|
|
88
|
+
* chosen based on the product plan.
|
|
89
|
+
*
|
|
90
|
+
* The major version is also reflected in the package name of the
|
|
91
|
+
* interface, which must end in `v<major-version>`, as in
|
|
92
|
+
* `google.feature.v1`. For major versions 0 and 1, the suffix can
|
|
93
|
+
* be omitted. Zero major versions must only be used for
|
|
94
|
+
* experimental, non-GA interfaces.
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: string version = 4;
|
|
99
|
+
*/
|
|
100
|
+
this.version = "";
|
|
101
|
+
/**
|
|
102
|
+
* Included interfaces. See [Mixin][].
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: repeated google.protobuf.Mixin mixins = 6;
|
|
105
|
+
*/
|
|
106
|
+
this.mixins = [];
|
|
107
|
+
/**
|
|
108
|
+
* The source syntax of the service.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: google.protobuf.Syntax syntax = 7;
|
|
111
|
+
*/
|
|
112
|
+
this.syntax = type_pb_js_1.Syntax.PROTO2;
|
|
113
|
+
index_js_1.proto3.util.initPartial(data, this);
|
|
114
|
+
}
|
|
115
|
+
static fromBinary(bytes, options) {
|
|
116
|
+
return new Api().fromBinary(bytes, options);
|
|
117
|
+
}
|
|
118
|
+
static fromJson(jsonValue, options) {
|
|
119
|
+
return new Api().fromJson(jsonValue, options);
|
|
120
|
+
}
|
|
121
|
+
static fromJsonString(jsonString, options) {
|
|
122
|
+
return new Api().fromJsonString(jsonString, options);
|
|
123
|
+
}
|
|
124
|
+
static equals(a, b) {
|
|
125
|
+
return index_js_1.proto3.util.equals(Api, a, b);
|
|
126
|
+
}
|
|
127
127
|
}
|
|
128
128
|
exports.Api = Api;
|
|
129
129
|
Api.runtime = index_js_1.proto3;
|
|
130
130
|
Api.typeName = "google.protobuf.Api";
|
|
131
131
|
Api.fields = index_js_1.proto3.util.newFieldList(() => [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
no:
|
|
136
|
-
name: "
|
|
137
|
-
kind: "message",
|
|
138
|
-
T: type_pb_js_1.
|
|
139
|
-
repeated: true,
|
|
140
|
-
},
|
|
141
|
-
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
142
|
-
{
|
|
143
|
-
no: 5,
|
|
144
|
-
name: "source_context",
|
|
145
|
-
kind: "message",
|
|
146
|
-
T: source_context_pb_js_1.SourceContext,
|
|
147
|
-
},
|
|
148
|
-
{ no: 6, name: "mixins", kind: "message", T: Mixin, repeated: true },
|
|
149
|
-
{
|
|
150
|
-
no: 7,
|
|
151
|
-
name: "syntax",
|
|
152
|
-
kind: "enum",
|
|
153
|
-
T: index_js_1.proto3.getEnumType(type_pb_js_1.Syntax),
|
|
154
|
-
},
|
|
132
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
|
+
{ no: 2, name: "methods", kind: "message", T: Method, repeated: true },
|
|
134
|
+
{ no: 3, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true },
|
|
135
|
+
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
136
|
+
{ no: 5, name: "source_context", kind: "message", T: source_context_pb_js_1.SourceContext },
|
|
137
|
+
{ no: 6, name: "mixins", kind: "message", T: Mixin, repeated: true },
|
|
138
|
+
{ no: 7, name: "syntax", kind: "enum", T: index_js_1.proto3.getEnumType(type_pb_js_1.Syntax) },
|
|
155
139
|
]);
|
|
156
140
|
/**
|
|
157
141
|
* Method represents a method of an API interface.
|
|
@@ -159,107 +143,76 @@ Api.fields = index_js_1.proto3.util.newFieldList(() => [
|
|
|
159
143
|
* @generated from message google.protobuf.Method
|
|
160
144
|
*/
|
|
161
145
|
class Method extends index_js_1.Message {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
146
|
+
constructor(data) {
|
|
147
|
+
super();
|
|
148
|
+
/**
|
|
149
|
+
* The simple name of this method.
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: string name = 1;
|
|
152
|
+
*/
|
|
153
|
+
this.name = "";
|
|
154
|
+
/**
|
|
155
|
+
* A URL of the input message type.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: string request_type_url = 2;
|
|
158
|
+
*/
|
|
159
|
+
this.requestTypeUrl = "";
|
|
160
|
+
/**
|
|
161
|
+
* If true, the request is streamed.
|
|
162
|
+
*
|
|
163
|
+
* @generated from field: bool request_streaming = 3;
|
|
164
|
+
*/
|
|
165
|
+
this.requestStreaming = false;
|
|
166
|
+
/**
|
|
167
|
+
* The URL of the output message type.
|
|
168
|
+
*
|
|
169
|
+
* @generated from field: string response_type_url = 4;
|
|
170
|
+
*/
|
|
171
|
+
this.responseTypeUrl = "";
|
|
172
|
+
/**
|
|
173
|
+
* If true, the response is streamed.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: bool response_streaming = 5;
|
|
176
|
+
*/
|
|
177
|
+
this.responseStreaming = false;
|
|
178
|
+
/**
|
|
179
|
+
* Any metadata attached to the method.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: repeated google.protobuf.Option options = 6;
|
|
182
|
+
*/
|
|
183
|
+
this.options = [];
|
|
184
|
+
/**
|
|
185
|
+
* The source syntax of this method.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: google.protobuf.Syntax syntax = 7;
|
|
188
|
+
*/
|
|
189
|
+
this.syntax = type_pb_js_1.Syntax.PROTO2;
|
|
190
|
+
index_js_1.proto3.util.initPartial(data, this);
|
|
191
|
+
}
|
|
192
|
+
static fromBinary(bytes, options) {
|
|
193
|
+
return new Method().fromBinary(bytes, options);
|
|
194
|
+
}
|
|
195
|
+
static fromJson(jsonValue, options) {
|
|
196
|
+
return new Method().fromJson(jsonValue, options);
|
|
197
|
+
}
|
|
198
|
+
static fromJsonString(jsonString, options) {
|
|
199
|
+
return new Method().fromJsonString(jsonString, options);
|
|
200
|
+
}
|
|
201
|
+
static equals(a, b) {
|
|
202
|
+
return index_js_1.proto3.util.equals(Method, a, b);
|
|
203
|
+
}
|
|
220
204
|
}
|
|
221
205
|
exports.Method = Method;
|
|
222
206
|
Method.runtime = index_js_1.proto3;
|
|
223
207
|
Method.typeName = "google.protobuf.Method";
|
|
224
208
|
Method.fields = index_js_1.proto3.util.newFieldList(() => [
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
no:
|
|
228
|
-
name: "
|
|
229
|
-
kind: "scalar",
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
{
|
|
233
|
-
no: 3,
|
|
234
|
-
name: "request_streaming",
|
|
235
|
-
kind: "scalar",
|
|
236
|
-
T: 8 /* ScalarType.BOOL */,
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
no: 4,
|
|
240
|
-
name: "response_type_url",
|
|
241
|
-
kind: "scalar",
|
|
242
|
-
T: 9 /* ScalarType.STRING */,
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
no: 5,
|
|
246
|
-
name: "response_streaming",
|
|
247
|
-
kind: "scalar",
|
|
248
|
-
T: 8 /* ScalarType.BOOL */,
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
no: 6,
|
|
252
|
-
name: "options",
|
|
253
|
-
kind: "message",
|
|
254
|
-
T: type_pb_js_1.Option,
|
|
255
|
-
repeated: true,
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
no: 7,
|
|
259
|
-
name: "syntax",
|
|
260
|
-
kind: "enum",
|
|
261
|
-
T: index_js_1.proto3.getEnumType(type_pb_js_1.Syntax),
|
|
262
|
-
},
|
|
209
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
210
|
+
{ no: 2, name: "request_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
|
+
{ no: 3, name: "request_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
212
|
+
{ no: 4, name: "response_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
213
|
+
{ no: 5, name: "response_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
214
|
+
{ no: 6, name: "options", kind: "message", T: type_pb_js_1.Option, repeated: true },
|
|
215
|
+
{ no: 7, name: "syntax", kind: "enum", T: index_js_1.proto3.getEnumType(type_pb_js_1.Syntax) },
|
|
263
216
|
]);
|
|
264
217
|
/**
|
|
265
218
|
* Declares an API Interface to be included in this interface. The including
|
|
@@ -344,40 +297,40 @@ Method.fields = index_js_1.proto3.util.newFieldList(() => [
|
|
|
344
297
|
* @generated from message google.protobuf.Mixin
|
|
345
298
|
*/
|
|
346
299
|
class Mixin extends index_js_1.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
|
-
|
|
300
|
+
constructor(data) {
|
|
301
|
+
super();
|
|
302
|
+
/**
|
|
303
|
+
* The fully qualified name of the interface which is included.
|
|
304
|
+
*
|
|
305
|
+
* @generated from field: string name = 1;
|
|
306
|
+
*/
|
|
307
|
+
this.name = "";
|
|
308
|
+
/**
|
|
309
|
+
* If non-empty specifies a path under which inherited HTTP paths
|
|
310
|
+
* are rooted.
|
|
311
|
+
*
|
|
312
|
+
* @generated from field: string root = 2;
|
|
313
|
+
*/
|
|
314
|
+
this.root = "";
|
|
315
|
+
index_js_1.proto3.util.initPartial(data, this);
|
|
316
|
+
}
|
|
317
|
+
static fromBinary(bytes, options) {
|
|
318
|
+
return new Mixin().fromBinary(bytes, options);
|
|
319
|
+
}
|
|
320
|
+
static fromJson(jsonValue, options) {
|
|
321
|
+
return new Mixin().fromJson(jsonValue, options);
|
|
322
|
+
}
|
|
323
|
+
static fromJsonString(jsonString, options) {
|
|
324
|
+
return new Mixin().fromJsonString(jsonString, options);
|
|
325
|
+
}
|
|
326
|
+
static equals(a, b) {
|
|
327
|
+
return index_js_1.proto3.util.equals(Mixin, a, b);
|
|
328
|
+
}
|
|
376
329
|
}
|
|
377
330
|
exports.Mixin = Mixin;
|
|
378
331
|
Mixin.runtime = index_js_1.proto3;
|
|
379
332
|
Mixin.typeName = "google.protobuf.Mixin";
|
|
380
333
|
Mixin.fields = index_js_1.proto3.util.newFieldList(() => [
|
|
381
|
-
|
|
382
|
-
|
|
334
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
335
|
+
{ no: 2, name: "root", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
383
336
|
]);
|