clarifai-web-grpc 1.1.7 → 2.0.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/.github/workflows/ci.yml +0 -2
- package/CHANGELOG.md +2 -3
- package/{lib/google → google}/api/annotations_grpc_pb.js +0 -0
- package/{src/google → google}/api/annotations_pb.js +0 -0
- package/{lib/google → google}/api/http_grpc_pb.js +0 -0
- package/{src/google → google}/api/http_pb.js +0 -0
- package/lib/google/api/annotations_pb.js +4 -19
- package/lib/google/api/http_pb.js +414 -606
- package/lib/proto/clarifai/api/resources_pb.d.ts +1 -5052
- package/lib/proto/clarifai/api/resources_pb.js +17880 -26127
- package/lib/proto/clarifai/api/service_pb.d.ts +1 -5582
- package/lib/proto/clarifai/api/service_pb.js +20941 -30047
- package/lib/proto/clarifai/api/status/status_code_pb.d.ts +1 -296
- package/lib/proto/clarifai/api/status/status_code_pb.js +293 -295
- package/lib/proto/clarifai/api/status/status_pb.d.ts +1 -73
- package/lib/proto/clarifai/api/status/status_pb.js +250 -357
- package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +1 -4
- package/lib/proto/clarifai/api/utils/extensions_pb.js +10 -53
- package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -81
- package/lib/proto/clarifai/api/utils/test_proto_pb.js +266 -385
- package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +1 -92
- package/lib/proto/clarifai/auth/scope/scope_pb.js +163 -232
- package/lib/proto/clarifai/auth/types/types_pb.d.ts +1 -10
- package/lib/proto/clarifai/auth/types/types_pb.js +7 -9
- package/lib/proto/clarifai/auth/util/extension_pb.d.ts +1 -6
- package/lib/proto/clarifai/auth/util/extension_pb.js +16 -87
- package/package.json +5 -30
- package/{src/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/resources_pb.js +0 -0
- package/{lib/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
- package/{src/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/service_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
- package/tsconfig.json +3 -10
- package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
- package/lib/google/api/http_grpc_pb.d.ts +0 -0
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -7
- package/lib/resources.d.ts +0 -12
- package/lib/resources.js +0 -11
- package/lib/service.d.ts +0 -1
- package/lib/service.js +0 -1
- package/src/google/api/annotations_grpc_pb.js +0 -1
- package/src/google/api/http_grpc_pb.js +0 -1
- package/src/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// source: google/api/http.proto
|
|
2
3
|
/**
|
|
3
4
|
* @fileoverview
|
|
@@ -9,11 +10,9 @@
|
|
|
9
10
|
// GENERATED CODE -- DO NOT EDIT!
|
|
10
11
|
/* eslint-disable */
|
|
11
12
|
// @ts-nocheck
|
|
12
|
-
|
|
13
13
|
var jspb = require('google-protobuf');
|
|
14
14
|
var goog = jspb;
|
|
15
15
|
var global = Function('return this')();
|
|
16
|
-
|
|
17
16
|
goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global);
|
|
18
17
|
goog.exportSymbol('proto.google.api.Http', null, global);
|
|
19
18
|
goog.exportSymbol('proto.google.api.HttpRule', null, global);
|
|
@@ -28,16 +27,16 @@ goog.exportSymbol('proto.google.api.HttpRule.PatternCase', null, global);
|
|
|
28
27
|
* @extends {jspb.Message}
|
|
29
28
|
* @constructor
|
|
30
29
|
*/
|
|
31
|
-
proto.google.api.Http = function(opt_data) {
|
|
32
|
-
|
|
30
|
+
proto.google.api.Http = function (opt_data) {
|
|
31
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Http.repeatedFields_, null);
|
|
33
32
|
};
|
|
34
33
|
goog.inherits(proto.google.api.Http, jspb.Message);
|
|
35
34
|
if (goog.DEBUG && !COMPILED) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @override
|
|
38
|
+
*/
|
|
39
|
+
proto.google.api.Http.displayName = 'proto.google.api.Http';
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
42
|
* Generated by JsPbCodeGenerator.
|
|
@@ -49,16 +48,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
49
48
|
* @extends {jspb.Message}
|
|
50
49
|
* @constructor
|
|
51
50
|
*/
|
|
52
|
-
proto.google.api.HttpRule = function(opt_data) {
|
|
53
|
-
|
|
51
|
+
proto.google.api.HttpRule = function (opt_data) {
|
|
52
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpRule.repeatedFields_, proto.google.api.HttpRule.oneofGroups_);
|
|
54
53
|
};
|
|
55
54
|
goog.inherits(proto.google.api.HttpRule, jspb.Message);
|
|
56
55
|
if (goog.DEBUG && !COMPILED) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
/**
|
|
57
|
+
* @public
|
|
58
|
+
* @override
|
|
59
|
+
*/
|
|
60
|
+
proto.google.api.HttpRule.displayName = 'proto.google.api.HttpRule';
|
|
62
61
|
}
|
|
63
62
|
/**
|
|
64
63
|
* Generated by JsPbCodeGenerator.
|
|
@@ -70,81 +69,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
70
69
|
* @extends {jspb.Message}
|
|
71
70
|
* @constructor
|
|
72
71
|
*/
|
|
73
|
-
proto.google.api.CustomHttpPattern = function(opt_data) {
|
|
74
|
-
|
|
72
|
+
proto.google.api.CustomHttpPattern = function (opt_data) {
|
|
73
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
75
74
|
};
|
|
76
75
|
goog.inherits(proto.google.api.CustomHttpPattern, jspb.Message);
|
|
77
76
|
if (goog.DEBUG && !COMPILED) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
* @override
|
|
80
|
+
*/
|
|
81
|
+
proto.google.api.CustomHttpPattern.displayName = 'proto.google.api.CustomHttpPattern';
|
|
83
82
|
}
|
|
84
|
-
|
|
85
83
|
/**
|
|
86
84
|
* List of repeated fields within this message type.
|
|
87
85
|
* @private {!Array<number>}
|
|
88
86
|
* @const
|
|
89
87
|
*/
|
|
90
88
|
proto.google.api.Http.repeatedFields_ = [1];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
89
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
95
|
-
/**
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
proto.google.api.Http.prototype.toObject = function(opt_includeInstance) {
|
|
108
|
-
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
proto.google.api.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
obj.$jspbMessageInstance = msg;
|
|
130
|
-
}
|
|
131
|
-
return obj;
|
|
132
|
-
};
|
|
90
|
+
/**
|
|
91
|
+
* Creates an object representation of this proto.
|
|
92
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
93
|
+
* Optional fields that are not set will be set to undefined.
|
|
94
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
95
|
+
* For the list of reserved names please see:
|
|
96
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
97
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
98
|
+
* JSPB instance for transitional soy proto support:
|
|
99
|
+
* http://goto/soy-param-migration
|
|
100
|
+
* @return {!Object}
|
|
101
|
+
*/
|
|
102
|
+
proto.google.api.Http.prototype.toObject = function (opt_includeInstance) {
|
|
103
|
+
return proto.google.api.Http.toObject(opt_includeInstance, this);
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Static version of the {@see toObject} method.
|
|
107
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
108
|
+
* the JSPB instance for transitional soy proto support:
|
|
109
|
+
* http://goto/soy-param-migration
|
|
110
|
+
* @param {!proto.google.api.Http} msg The msg instance to transform.
|
|
111
|
+
* @return {!Object}
|
|
112
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
113
|
+
*/
|
|
114
|
+
proto.google.api.Http.toObject = function (includeInstance, msg) {
|
|
115
|
+
var f, obj = {
|
|
116
|
+
rulesList: jspb.Message.toObjectList(msg.getRulesList(), proto.google.api.HttpRule.toObject, includeInstance),
|
|
117
|
+
fullyDecodeReservedExpansion: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
118
|
+
};
|
|
119
|
+
if (includeInstance) {
|
|
120
|
+
obj.$jspbMessageInstance = msg;
|
|
121
|
+
}
|
|
122
|
+
return obj;
|
|
123
|
+
};
|
|
133
124
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
125
|
/**
|
|
137
126
|
* Deserializes binary data (in protobuf wire format).
|
|
138
127
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
139
128
|
* @return {!proto.google.api.Http}
|
|
140
129
|
*/
|
|
141
|
-
proto.google.api.Http.deserializeBinary = function(bytes) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
130
|
+
proto.google.api.Http.deserializeBinary = function (bytes) {
|
|
131
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
132
|
+
var msg = new proto.google.api.Http;
|
|
133
|
+
return proto.google.api.Http.deserializeBinaryFromReader(msg, reader);
|
|
145
134
|
};
|
|
146
|
-
|
|
147
|
-
|
|
148
135
|
/**
|
|
149
136
|
* Deserializes binary data (in protobuf wire format) from the
|
|
150
137
|
* given reader into the given message object.
|
|
@@ -152,42 +139,38 @@ proto.google.api.Http.deserializeBinary = function(bytes) {
|
|
|
152
139
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
153
140
|
* @return {!proto.google.api.Http}
|
|
154
141
|
*/
|
|
155
|
-
proto.google.api.Http.deserializeBinaryFromReader = function(msg, reader) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
142
|
+
proto.google.api.Http.deserializeBinaryFromReader = function (msg, reader) {
|
|
143
|
+
while (reader.nextField()) {
|
|
144
|
+
if (reader.isEndGroup()) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
var field = reader.getFieldNumber();
|
|
148
|
+
switch (field) {
|
|
149
|
+
case 1:
|
|
150
|
+
var value = new proto.google.api.HttpRule;
|
|
151
|
+
reader.readMessage(value, proto.google.api.HttpRule.deserializeBinaryFromReader);
|
|
152
|
+
msg.addRules(value);
|
|
153
|
+
break;
|
|
154
|
+
case 2:
|
|
155
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
156
|
+
msg.setFullyDecodeReservedExpansion(value);
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
reader.skipField();
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
159
162
|
}
|
|
160
|
-
|
|
161
|
-
switch (field) {
|
|
162
|
-
case 1:
|
|
163
|
-
var value = new proto.google.api.HttpRule;
|
|
164
|
-
reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
|
|
165
|
-
msg.addRules(value);
|
|
166
|
-
break;
|
|
167
|
-
case 2:
|
|
168
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
169
|
-
msg.setFullyDecodeReservedExpansion(value);
|
|
170
|
-
break;
|
|
171
|
-
default:
|
|
172
|
-
reader.skipField();
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
return msg;
|
|
163
|
+
return msg;
|
|
177
164
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
165
|
/**
|
|
181
166
|
* Serializes the message to binary data (in protobuf wire format).
|
|
182
167
|
* @return {!Uint8Array}
|
|
183
168
|
*/
|
|
184
|
-
proto.google.api.Http.prototype.serializeBinary = function() {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
169
|
+
proto.google.api.Http.prototype.serializeBinary = function () {
|
|
170
|
+
var writer = new jspb.BinaryWriter();
|
|
171
|
+
proto.google.api.Http.serializeBinaryToWriter(this, writer);
|
|
172
|
+
return writer.getResultBuffer();
|
|
188
173
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
174
|
/**
|
|
192
175
|
* Serializes the given message to binary data (in protobuf wire
|
|
193
176
|
* format), writing to the given BinaryWriter.
|
|
@@ -195,90 +178,66 @@ proto.google.api.Http.prototype.serializeBinary = function() {
|
|
|
195
178
|
* @param {!jspb.BinaryWriter} writer
|
|
196
179
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
197
180
|
*/
|
|
198
|
-
proto.google.api.Http.serializeBinaryToWriter = function(message, writer) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (f) {
|
|
210
|
-
writer.writeBool(
|
|
211
|
-
2,
|
|
212
|
-
f
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
|
|
181
|
+
proto.google.api.Http.serializeBinaryToWriter = function (message, writer) {
|
|
182
|
+
var f = undefined;
|
|
183
|
+
f = message.getRulesList();
|
|
184
|
+
if (f.length > 0) {
|
|
185
|
+
writer.writeRepeatedMessage(1, f, proto.google.api.HttpRule.serializeBinaryToWriter);
|
|
186
|
+
}
|
|
187
|
+
f = message.getFullyDecodeReservedExpansion();
|
|
188
|
+
if (f) {
|
|
189
|
+
writer.writeBool(2, f);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
218
192
|
/**
|
|
219
193
|
* repeated HttpRule rules = 1;
|
|
220
194
|
* @return {!Array<!proto.google.api.HttpRule>}
|
|
221
195
|
*/
|
|
222
|
-
proto.google.api.Http.prototype.getRulesList = function() {
|
|
223
|
-
|
|
224
|
-
jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1));
|
|
196
|
+
proto.google.api.Http.prototype.getRulesList = function () {
|
|
197
|
+
return /** @type{!Array<!proto.google.api.HttpRule>} */ (jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 1));
|
|
225
198
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
199
|
/**
|
|
229
200
|
* @param {!Array<!proto.google.api.HttpRule>} value
|
|
230
201
|
* @return {!proto.google.api.Http} returns this
|
|
231
202
|
*/
|
|
232
|
-
proto.google.api.Http.prototype.setRulesList = function(value) {
|
|
233
|
-
|
|
203
|
+
proto.google.api.Http.prototype.setRulesList = function (value) {
|
|
204
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
234
205
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
206
|
/**
|
|
238
207
|
* @param {!proto.google.api.HttpRule=} opt_value
|
|
239
208
|
* @param {number=} opt_index
|
|
240
209
|
* @return {!proto.google.api.HttpRule}
|
|
241
210
|
*/
|
|
242
|
-
proto.google.api.Http.prototype.addRules = function(opt_value, opt_index) {
|
|
243
|
-
|
|
211
|
+
proto.google.api.Http.prototype.addRules = function (opt_value, opt_index) {
|
|
212
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.HttpRule, opt_index);
|
|
244
213
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
214
|
/**
|
|
248
215
|
* Clears the list making it empty but non-null.
|
|
249
216
|
* @return {!proto.google.api.Http} returns this
|
|
250
217
|
*/
|
|
251
|
-
proto.google.api.Http.prototype.clearRulesList = function() {
|
|
252
|
-
|
|
218
|
+
proto.google.api.Http.prototype.clearRulesList = function () {
|
|
219
|
+
return this.setRulesList([]);
|
|
253
220
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
221
|
/**
|
|
257
222
|
* optional bool fully_decode_reserved_expansion = 2;
|
|
258
223
|
* @return {boolean}
|
|
259
224
|
*/
|
|
260
|
-
proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function() {
|
|
261
|
-
|
|
225
|
+
proto.google.api.Http.prototype.getFullyDecodeReservedExpansion = function () {
|
|
226
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
262
227
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
228
|
/**
|
|
266
229
|
* @param {boolean} value
|
|
267
230
|
* @return {!proto.google.api.Http} returns this
|
|
268
231
|
*/
|
|
269
|
-
proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function(value) {
|
|
270
|
-
|
|
232
|
+
proto.google.api.Http.prototype.setFullyDecodeReservedExpansion = function (value) {
|
|
233
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
271
234
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
235
|
/**
|
|
276
236
|
* List of repeated fields within this message type.
|
|
277
237
|
* @private {!Array<number>}
|
|
278
238
|
* @const
|
|
279
239
|
*/
|
|
280
240
|
proto.google.api.HttpRule.repeatedFields_ = [11];
|
|
281
|
-
|
|
282
241
|
/**
|
|
283
242
|
* Oneof group definitions for this message. Each group defines the field
|
|
284
243
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
@@ -287,92 +246,79 @@ proto.google.api.HttpRule.repeatedFields_ = [11];
|
|
|
287
246
|
* @private {!Array<!Array<number>>}
|
|
288
247
|
* @const
|
|
289
248
|
*/
|
|
290
|
-
proto.google.api.HttpRule.oneofGroups_ = [[2,3,4,5,6,8]];
|
|
291
|
-
|
|
249
|
+
proto.google.api.HttpRule.oneofGroups_ = [[2, 3, 4, 5, 6, 8]];
|
|
292
250
|
/**
|
|
293
251
|
* @enum {number}
|
|
294
252
|
*/
|
|
295
253
|
proto.google.api.HttpRule.PatternCase = {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
254
|
+
PATTERN_NOT_SET: 0,
|
|
255
|
+
GET: 2,
|
|
256
|
+
PUT: 3,
|
|
257
|
+
POST: 4,
|
|
258
|
+
DELETE: 5,
|
|
259
|
+
PATCH: 6,
|
|
260
|
+
CUSTOM: 8
|
|
303
261
|
};
|
|
304
|
-
|
|
305
262
|
/**
|
|
306
263
|
* @return {proto.google.api.HttpRule.PatternCase}
|
|
307
264
|
*/
|
|
308
|
-
proto.google.api.HttpRule.prototype.getPatternCase = function() {
|
|
309
|
-
|
|
265
|
+
proto.google.api.HttpRule.prototype.getPatternCase = function () {
|
|
266
|
+
return /** @type {proto.google.api.HttpRule.PatternCase} */ (jspb.Message.computeOneofCase(this, proto.google.api.HttpRule.oneofGroups_[0]));
|
|
310
267
|
};
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
268
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
315
|
-
/**
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
proto.google.api.HttpRule.prototype.toObject = function(opt_includeInstance) {
|
|
328
|
-
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
obj.$jspbMessageInstance = msg;
|
|
358
|
-
}
|
|
359
|
-
return obj;
|
|
360
|
-
};
|
|
269
|
+
/**
|
|
270
|
+
* Creates an object representation of this proto.
|
|
271
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
272
|
+
* Optional fields that are not set will be set to undefined.
|
|
273
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
274
|
+
* For the list of reserved names please see:
|
|
275
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
276
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
277
|
+
* JSPB instance for transitional soy proto support:
|
|
278
|
+
* http://goto/soy-param-migration
|
|
279
|
+
* @return {!Object}
|
|
280
|
+
*/
|
|
281
|
+
proto.google.api.HttpRule.prototype.toObject = function (opt_includeInstance) {
|
|
282
|
+
return proto.google.api.HttpRule.toObject(opt_includeInstance, this);
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Static version of the {@see toObject} method.
|
|
286
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
287
|
+
* the JSPB instance for transitional soy proto support:
|
|
288
|
+
* http://goto/soy-param-migration
|
|
289
|
+
* @param {!proto.google.api.HttpRule} msg The msg instance to transform.
|
|
290
|
+
* @return {!Object}
|
|
291
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
292
|
+
*/
|
|
293
|
+
proto.google.api.HttpRule.toObject = function (includeInstance, msg) {
|
|
294
|
+
var f, obj = {
|
|
295
|
+
selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
296
|
+
get: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
297
|
+
put: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
298
|
+
post: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
299
|
+
pb_delete: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
300
|
+
patch: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
301
|
+
custom: (f = msg.getCustom()) && proto.google.api.CustomHttpPattern.toObject(includeInstance, f),
|
|
302
|
+
body: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
303
|
+
responseBody: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
304
|
+
additionalBindingsList: jspb.Message.toObjectList(msg.getAdditionalBindingsList(), proto.google.api.HttpRule.toObject, includeInstance)
|
|
305
|
+
};
|
|
306
|
+
if (includeInstance) {
|
|
307
|
+
obj.$jspbMessageInstance = msg;
|
|
308
|
+
}
|
|
309
|
+
return obj;
|
|
310
|
+
};
|
|
361
311
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
312
|
/**
|
|
365
313
|
* Deserializes binary data (in protobuf wire format).
|
|
366
314
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
367
315
|
* @return {!proto.google.api.HttpRule}
|
|
368
316
|
*/
|
|
369
|
-
proto.google.api.HttpRule.deserializeBinary = function(bytes) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
317
|
+
proto.google.api.HttpRule.deserializeBinary = function (bytes) {
|
|
318
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
319
|
+
var msg = new proto.google.api.HttpRule;
|
|
320
|
+
return proto.google.api.HttpRule.deserializeBinaryFromReader(msg, reader);
|
|
373
321
|
};
|
|
374
|
-
|
|
375
|
-
|
|
376
322
|
/**
|
|
377
323
|
* Deserializes binary data (in protobuf wire format) from the
|
|
378
324
|
* given reader into the given message object.
|
|
@@ -380,75 +326,71 @@ proto.google.api.HttpRule.deserializeBinary = function(bytes) {
|
|
|
380
326
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
381
327
|
* @return {!proto.google.api.HttpRule}
|
|
382
328
|
*/
|
|
383
|
-
proto.google.api.HttpRule.deserializeBinaryFromReader = function(msg, reader) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
329
|
+
proto.google.api.HttpRule.deserializeBinaryFromReader = function (msg, reader) {
|
|
330
|
+
while (reader.nextField()) {
|
|
331
|
+
if (reader.isEndGroup()) {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
var field = reader.getFieldNumber();
|
|
335
|
+
switch (field) {
|
|
336
|
+
case 1:
|
|
337
|
+
var value = /** @type {string} */ (reader.readString());
|
|
338
|
+
msg.setSelector(value);
|
|
339
|
+
break;
|
|
340
|
+
case 2:
|
|
341
|
+
var value = /** @type {string} */ (reader.readString());
|
|
342
|
+
msg.setGet(value);
|
|
343
|
+
break;
|
|
344
|
+
case 3:
|
|
345
|
+
var value = /** @type {string} */ (reader.readString());
|
|
346
|
+
msg.setPut(value);
|
|
347
|
+
break;
|
|
348
|
+
case 4:
|
|
349
|
+
var value = /** @type {string} */ (reader.readString());
|
|
350
|
+
msg.setPost(value);
|
|
351
|
+
break;
|
|
352
|
+
case 5:
|
|
353
|
+
var value = /** @type {string} */ (reader.readString());
|
|
354
|
+
msg.setDelete(value);
|
|
355
|
+
break;
|
|
356
|
+
case 6:
|
|
357
|
+
var value = /** @type {string} */ (reader.readString());
|
|
358
|
+
msg.setPatch(value);
|
|
359
|
+
break;
|
|
360
|
+
case 8:
|
|
361
|
+
var value = new proto.google.api.CustomHttpPattern;
|
|
362
|
+
reader.readMessage(value, proto.google.api.CustomHttpPattern.deserializeBinaryFromReader);
|
|
363
|
+
msg.setCustom(value);
|
|
364
|
+
break;
|
|
365
|
+
case 7:
|
|
366
|
+
var value = /** @type {string} */ (reader.readString());
|
|
367
|
+
msg.setBody(value);
|
|
368
|
+
break;
|
|
369
|
+
case 12:
|
|
370
|
+
var value = /** @type {string} */ (reader.readString());
|
|
371
|
+
msg.setResponseBody(value);
|
|
372
|
+
break;
|
|
373
|
+
case 11:
|
|
374
|
+
var value = new proto.google.api.HttpRule;
|
|
375
|
+
reader.readMessage(value, proto.google.api.HttpRule.deserializeBinaryFromReader);
|
|
376
|
+
msg.addAdditionalBindings(value);
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
reader.skipField();
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
387
382
|
}
|
|
388
|
-
|
|
389
|
-
switch (field) {
|
|
390
|
-
case 1:
|
|
391
|
-
var value = /** @type {string} */ (reader.readString());
|
|
392
|
-
msg.setSelector(value);
|
|
393
|
-
break;
|
|
394
|
-
case 2:
|
|
395
|
-
var value = /** @type {string} */ (reader.readString());
|
|
396
|
-
msg.setGet(value);
|
|
397
|
-
break;
|
|
398
|
-
case 3:
|
|
399
|
-
var value = /** @type {string} */ (reader.readString());
|
|
400
|
-
msg.setPut(value);
|
|
401
|
-
break;
|
|
402
|
-
case 4:
|
|
403
|
-
var value = /** @type {string} */ (reader.readString());
|
|
404
|
-
msg.setPost(value);
|
|
405
|
-
break;
|
|
406
|
-
case 5:
|
|
407
|
-
var value = /** @type {string} */ (reader.readString());
|
|
408
|
-
msg.setDelete(value);
|
|
409
|
-
break;
|
|
410
|
-
case 6:
|
|
411
|
-
var value = /** @type {string} */ (reader.readString());
|
|
412
|
-
msg.setPatch(value);
|
|
413
|
-
break;
|
|
414
|
-
case 8:
|
|
415
|
-
var value = new proto.google.api.CustomHttpPattern;
|
|
416
|
-
reader.readMessage(value,proto.google.api.CustomHttpPattern.deserializeBinaryFromReader);
|
|
417
|
-
msg.setCustom(value);
|
|
418
|
-
break;
|
|
419
|
-
case 7:
|
|
420
|
-
var value = /** @type {string} */ (reader.readString());
|
|
421
|
-
msg.setBody(value);
|
|
422
|
-
break;
|
|
423
|
-
case 12:
|
|
424
|
-
var value = /** @type {string} */ (reader.readString());
|
|
425
|
-
msg.setResponseBody(value);
|
|
426
|
-
break;
|
|
427
|
-
case 11:
|
|
428
|
-
var value = new proto.google.api.HttpRule;
|
|
429
|
-
reader.readMessage(value,proto.google.api.HttpRule.deserializeBinaryFromReader);
|
|
430
|
-
msg.addAdditionalBindings(value);
|
|
431
|
-
break;
|
|
432
|
-
default:
|
|
433
|
-
reader.skipField();
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
return msg;
|
|
383
|
+
return msg;
|
|
438
384
|
};
|
|
439
|
-
|
|
440
|
-
|
|
441
385
|
/**
|
|
442
386
|
* Serializes the message to binary data (in protobuf wire format).
|
|
443
387
|
* @return {!Uint8Array}
|
|
444
388
|
*/
|
|
445
|
-
proto.google.api.HttpRule.prototype.serializeBinary = function() {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
389
|
+
proto.google.api.HttpRule.prototype.serializeBinary = function () {
|
|
390
|
+
var writer = new jspb.BinaryWriter();
|
|
391
|
+
proto.google.api.HttpRule.serializeBinaryToWriter(this, writer);
|
|
392
|
+
return writer.getResultBuffer();
|
|
449
393
|
};
|
|
450
|
-
|
|
451
|
-
|
|
452
394
|
/**
|
|
453
395
|
* Serializes the given message to binary data (in protobuf wire
|
|
454
396
|
* format), writing to the given BinaryWriter.
|
|
@@ -456,448 +398,334 @@ proto.google.api.HttpRule.prototype.serializeBinary = function() {
|
|
|
456
398
|
* @param {!jspb.BinaryWriter} writer
|
|
457
399
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
458
400
|
*/
|
|
459
|
-
proto.google.api.HttpRule.serializeBinaryToWriter = function(message, writer) {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
)
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
);
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
)
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
503
|
-
f = message.getCustom();
|
|
504
|
-
if (f != null) {
|
|
505
|
-
writer.writeMessage(
|
|
506
|
-
8,
|
|
507
|
-
f,
|
|
508
|
-
proto.google.api.CustomHttpPattern.serializeBinaryToWriter
|
|
509
|
-
);
|
|
510
|
-
}
|
|
511
|
-
f = message.getBody();
|
|
512
|
-
if (f.length > 0) {
|
|
513
|
-
writer.writeString(
|
|
514
|
-
7,
|
|
515
|
-
f
|
|
516
|
-
);
|
|
517
|
-
}
|
|
518
|
-
f = message.getResponseBody();
|
|
519
|
-
if (f.length > 0) {
|
|
520
|
-
writer.writeString(
|
|
521
|
-
12,
|
|
522
|
-
f
|
|
523
|
-
);
|
|
524
|
-
}
|
|
525
|
-
f = message.getAdditionalBindingsList();
|
|
526
|
-
if (f.length > 0) {
|
|
527
|
-
writer.writeRepeatedMessage(
|
|
528
|
-
11,
|
|
529
|
-
f,
|
|
530
|
-
proto.google.api.HttpRule.serializeBinaryToWriter
|
|
531
|
-
);
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
|
|
401
|
+
proto.google.api.HttpRule.serializeBinaryToWriter = function (message, writer) {
|
|
402
|
+
var f = undefined;
|
|
403
|
+
f = message.getSelector();
|
|
404
|
+
if (f.length > 0) {
|
|
405
|
+
writer.writeString(1, f);
|
|
406
|
+
}
|
|
407
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
408
|
+
if (f != null) {
|
|
409
|
+
writer.writeString(2, f);
|
|
410
|
+
}
|
|
411
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
412
|
+
if (f != null) {
|
|
413
|
+
writer.writeString(3, f);
|
|
414
|
+
}
|
|
415
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
416
|
+
if (f != null) {
|
|
417
|
+
writer.writeString(4, f);
|
|
418
|
+
}
|
|
419
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
420
|
+
if (f != null) {
|
|
421
|
+
writer.writeString(5, f);
|
|
422
|
+
}
|
|
423
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
424
|
+
if (f != null) {
|
|
425
|
+
writer.writeString(6, f);
|
|
426
|
+
}
|
|
427
|
+
f = message.getCustom();
|
|
428
|
+
if (f != null) {
|
|
429
|
+
writer.writeMessage(8, f, proto.google.api.CustomHttpPattern.serializeBinaryToWriter);
|
|
430
|
+
}
|
|
431
|
+
f = message.getBody();
|
|
432
|
+
if (f.length > 0) {
|
|
433
|
+
writer.writeString(7, f);
|
|
434
|
+
}
|
|
435
|
+
f = message.getResponseBody();
|
|
436
|
+
if (f.length > 0) {
|
|
437
|
+
writer.writeString(12, f);
|
|
438
|
+
}
|
|
439
|
+
f = message.getAdditionalBindingsList();
|
|
440
|
+
if (f.length > 0) {
|
|
441
|
+
writer.writeRepeatedMessage(11, f, proto.google.api.HttpRule.serializeBinaryToWriter);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
536
444
|
/**
|
|
537
445
|
* optional string selector = 1;
|
|
538
446
|
* @return {string}
|
|
539
447
|
*/
|
|
540
|
-
proto.google.api.HttpRule.prototype.getSelector = function() {
|
|
541
|
-
|
|
448
|
+
proto.google.api.HttpRule.prototype.getSelector = function () {
|
|
449
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
542
450
|
};
|
|
543
|
-
|
|
544
|
-
|
|
545
451
|
/**
|
|
546
452
|
* @param {string} value
|
|
547
453
|
* @return {!proto.google.api.HttpRule} returns this
|
|
548
454
|
*/
|
|
549
|
-
proto.google.api.HttpRule.prototype.setSelector = function(value) {
|
|
550
|
-
|
|
455
|
+
proto.google.api.HttpRule.prototype.setSelector = function (value) {
|
|
456
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
551
457
|
};
|
|
552
|
-
|
|
553
|
-
|
|
554
458
|
/**
|
|
555
459
|
* optional string get = 2;
|
|
556
460
|
* @return {string}
|
|
557
461
|
*/
|
|
558
|
-
proto.google.api.HttpRule.prototype.getGet = function() {
|
|
559
|
-
|
|
462
|
+
proto.google.api.HttpRule.prototype.getGet = function () {
|
|
463
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
560
464
|
};
|
|
561
|
-
|
|
562
|
-
|
|
563
465
|
/**
|
|
564
466
|
* @param {string} value
|
|
565
467
|
* @return {!proto.google.api.HttpRule} returns this
|
|
566
468
|
*/
|
|
567
|
-
proto.google.api.HttpRule.prototype.setGet = function(value) {
|
|
568
|
-
|
|
469
|
+
proto.google.api.HttpRule.prototype.setGet = function (value) {
|
|
470
|
+
return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], value);
|
|
569
471
|
};
|
|
570
|
-
|
|
571
|
-
|
|
572
472
|
/**
|
|
573
473
|
* Clears the field making it undefined.
|
|
574
474
|
* @return {!proto.google.api.HttpRule} returns this
|
|
575
475
|
*/
|
|
576
|
-
proto.google.api.HttpRule.prototype.clearGet = function() {
|
|
577
|
-
|
|
476
|
+
proto.google.api.HttpRule.prototype.clearGet = function () {
|
|
477
|
+
return jspb.Message.setOneofField(this, 2, proto.google.api.HttpRule.oneofGroups_[0], undefined);
|
|
578
478
|
};
|
|
579
|
-
|
|
580
|
-
|
|
581
479
|
/**
|
|
582
480
|
* Returns whether this field is set.
|
|
583
481
|
* @return {boolean}
|
|
584
482
|
*/
|
|
585
|
-
proto.google.api.HttpRule.prototype.hasGet = function() {
|
|
586
|
-
|
|
483
|
+
proto.google.api.HttpRule.prototype.hasGet = function () {
|
|
484
|
+
return jspb.Message.getField(this, 2) != null;
|
|
587
485
|
};
|
|
588
|
-
|
|
589
|
-
|
|
590
486
|
/**
|
|
591
487
|
* optional string put = 3;
|
|
592
488
|
* @return {string}
|
|
593
489
|
*/
|
|
594
|
-
proto.google.api.HttpRule.prototype.getPut = function() {
|
|
595
|
-
|
|
490
|
+
proto.google.api.HttpRule.prototype.getPut = function () {
|
|
491
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
596
492
|
};
|
|
597
|
-
|
|
598
|
-
|
|
599
493
|
/**
|
|
600
494
|
* @param {string} value
|
|
601
495
|
* @return {!proto.google.api.HttpRule} returns this
|
|
602
496
|
*/
|
|
603
|
-
proto.google.api.HttpRule.prototype.setPut = function(value) {
|
|
604
|
-
|
|
497
|
+
proto.google.api.HttpRule.prototype.setPut = function (value) {
|
|
498
|
+
return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], value);
|
|
605
499
|
};
|
|
606
|
-
|
|
607
|
-
|
|
608
500
|
/**
|
|
609
501
|
* Clears the field making it undefined.
|
|
610
502
|
* @return {!proto.google.api.HttpRule} returns this
|
|
611
503
|
*/
|
|
612
|
-
proto.google.api.HttpRule.prototype.clearPut = function() {
|
|
613
|
-
|
|
504
|
+
proto.google.api.HttpRule.prototype.clearPut = function () {
|
|
505
|
+
return jspb.Message.setOneofField(this, 3, proto.google.api.HttpRule.oneofGroups_[0], undefined);
|
|
614
506
|
};
|
|
615
|
-
|
|
616
|
-
|
|
617
507
|
/**
|
|
618
508
|
* Returns whether this field is set.
|
|
619
509
|
* @return {boolean}
|
|
620
510
|
*/
|
|
621
|
-
proto.google.api.HttpRule.prototype.hasPut = function() {
|
|
622
|
-
|
|
511
|
+
proto.google.api.HttpRule.prototype.hasPut = function () {
|
|
512
|
+
return jspb.Message.getField(this, 3) != null;
|
|
623
513
|
};
|
|
624
|
-
|
|
625
|
-
|
|
626
514
|
/**
|
|
627
515
|
* optional string post = 4;
|
|
628
516
|
* @return {string}
|
|
629
517
|
*/
|
|
630
|
-
proto.google.api.HttpRule.prototype.getPost = function() {
|
|
631
|
-
|
|
518
|
+
proto.google.api.HttpRule.prototype.getPost = function () {
|
|
519
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
632
520
|
};
|
|
633
|
-
|
|
634
|
-
|
|
635
521
|
/**
|
|
636
522
|
* @param {string} value
|
|
637
523
|
* @return {!proto.google.api.HttpRule} returns this
|
|
638
524
|
*/
|
|
639
|
-
proto.google.api.HttpRule.prototype.setPost = function(value) {
|
|
640
|
-
|
|
525
|
+
proto.google.api.HttpRule.prototype.setPost = function (value) {
|
|
526
|
+
return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], value);
|
|
641
527
|
};
|
|
642
|
-
|
|
643
|
-
|
|
644
528
|
/**
|
|
645
529
|
* Clears the field making it undefined.
|
|
646
530
|
* @return {!proto.google.api.HttpRule} returns this
|
|
647
531
|
*/
|
|
648
|
-
proto.google.api.HttpRule.prototype.clearPost = function() {
|
|
649
|
-
|
|
532
|
+
proto.google.api.HttpRule.prototype.clearPost = function () {
|
|
533
|
+
return jspb.Message.setOneofField(this, 4, proto.google.api.HttpRule.oneofGroups_[0], undefined);
|
|
650
534
|
};
|
|
651
|
-
|
|
652
|
-
|
|
653
535
|
/**
|
|
654
536
|
* Returns whether this field is set.
|
|
655
537
|
* @return {boolean}
|
|
656
538
|
*/
|
|
657
|
-
proto.google.api.HttpRule.prototype.hasPost = function() {
|
|
658
|
-
|
|
539
|
+
proto.google.api.HttpRule.prototype.hasPost = function () {
|
|
540
|
+
return jspb.Message.getField(this, 4) != null;
|
|
659
541
|
};
|
|
660
|
-
|
|
661
|
-
|
|
662
542
|
/**
|
|
663
543
|
* optional string delete = 5;
|
|
664
544
|
* @return {string}
|
|
665
545
|
*/
|
|
666
|
-
proto.google.api.HttpRule.prototype.getDelete = function() {
|
|
667
|
-
|
|
546
|
+
proto.google.api.HttpRule.prototype.getDelete = function () {
|
|
547
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
668
548
|
};
|
|
669
|
-
|
|
670
|
-
|
|
671
549
|
/**
|
|
672
550
|
* @param {string} value
|
|
673
551
|
* @return {!proto.google.api.HttpRule} returns this
|
|
674
552
|
*/
|
|
675
|
-
proto.google.api.HttpRule.prototype.setDelete = function(value) {
|
|
676
|
-
|
|
553
|
+
proto.google.api.HttpRule.prototype.setDelete = function (value) {
|
|
554
|
+
return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], value);
|
|
677
555
|
};
|
|
678
|
-
|
|
679
|
-
|
|
680
556
|
/**
|
|
681
557
|
* Clears the field making it undefined.
|
|
682
558
|
* @return {!proto.google.api.HttpRule} returns this
|
|
683
559
|
*/
|
|
684
|
-
proto.google.api.HttpRule.prototype.clearDelete = function() {
|
|
685
|
-
|
|
560
|
+
proto.google.api.HttpRule.prototype.clearDelete = function () {
|
|
561
|
+
return jspb.Message.setOneofField(this, 5, proto.google.api.HttpRule.oneofGroups_[0], undefined);
|
|
686
562
|
};
|
|
687
|
-
|
|
688
|
-
|
|
689
563
|
/**
|
|
690
564
|
* Returns whether this field is set.
|
|
691
565
|
* @return {boolean}
|
|
692
566
|
*/
|
|
693
|
-
proto.google.api.HttpRule.prototype.hasDelete = function() {
|
|
694
|
-
|
|
567
|
+
proto.google.api.HttpRule.prototype.hasDelete = function () {
|
|
568
|
+
return jspb.Message.getField(this, 5) != null;
|
|
695
569
|
};
|
|
696
|
-
|
|
697
|
-
|
|
698
570
|
/**
|
|
699
571
|
* optional string patch = 6;
|
|
700
572
|
* @return {string}
|
|
701
573
|
*/
|
|
702
|
-
proto.google.api.HttpRule.prototype.getPatch = function() {
|
|
703
|
-
|
|
574
|
+
proto.google.api.HttpRule.prototype.getPatch = function () {
|
|
575
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
704
576
|
};
|
|
705
|
-
|
|
706
|
-
|
|
707
577
|
/**
|
|
708
578
|
* @param {string} value
|
|
709
579
|
* @return {!proto.google.api.HttpRule} returns this
|
|
710
580
|
*/
|
|
711
|
-
proto.google.api.HttpRule.prototype.setPatch = function(value) {
|
|
712
|
-
|
|
581
|
+
proto.google.api.HttpRule.prototype.setPatch = function (value) {
|
|
582
|
+
return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], value);
|
|
713
583
|
};
|
|
714
|
-
|
|
715
|
-
|
|
716
584
|
/**
|
|
717
585
|
* Clears the field making it undefined.
|
|
718
586
|
* @return {!proto.google.api.HttpRule} returns this
|
|
719
587
|
*/
|
|
720
|
-
proto.google.api.HttpRule.prototype.clearPatch = function() {
|
|
721
|
-
|
|
588
|
+
proto.google.api.HttpRule.prototype.clearPatch = function () {
|
|
589
|
+
return jspb.Message.setOneofField(this, 6, proto.google.api.HttpRule.oneofGroups_[0], undefined);
|
|
722
590
|
};
|
|
723
|
-
|
|
724
|
-
|
|
725
591
|
/**
|
|
726
592
|
* Returns whether this field is set.
|
|
727
593
|
* @return {boolean}
|
|
728
594
|
*/
|
|
729
|
-
proto.google.api.HttpRule.prototype.hasPatch = function() {
|
|
730
|
-
|
|
595
|
+
proto.google.api.HttpRule.prototype.hasPatch = function () {
|
|
596
|
+
return jspb.Message.getField(this, 6) != null;
|
|
731
597
|
};
|
|
732
|
-
|
|
733
|
-
|
|
734
598
|
/**
|
|
735
599
|
* optional CustomHttpPattern custom = 8;
|
|
736
600
|
* @return {?proto.google.api.CustomHttpPattern}
|
|
737
601
|
*/
|
|
738
|
-
proto.google.api.HttpRule.prototype.getCustom = function() {
|
|
739
|
-
|
|
740
|
-
jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8));
|
|
602
|
+
proto.google.api.HttpRule.prototype.getCustom = function () {
|
|
603
|
+
return /** @type{?proto.google.api.CustomHttpPattern} */ (jspb.Message.getWrapperField(this, proto.google.api.CustomHttpPattern, 8));
|
|
741
604
|
};
|
|
742
|
-
|
|
743
|
-
|
|
744
605
|
/**
|
|
745
606
|
* @param {?proto.google.api.CustomHttpPattern|undefined} value
|
|
746
607
|
* @return {!proto.google.api.HttpRule} returns this
|
|
747
608
|
*/
|
|
748
|
-
proto.google.api.HttpRule.prototype.setCustom = function(value) {
|
|
749
|
-
|
|
609
|
+
proto.google.api.HttpRule.prototype.setCustom = function (value) {
|
|
610
|
+
return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.HttpRule.oneofGroups_[0], value);
|
|
750
611
|
};
|
|
751
|
-
|
|
752
|
-
|
|
753
612
|
/**
|
|
754
613
|
* Clears the message field making it undefined.
|
|
755
614
|
* @return {!proto.google.api.HttpRule} returns this
|
|
756
615
|
*/
|
|
757
|
-
proto.google.api.HttpRule.prototype.clearCustom = function() {
|
|
758
|
-
|
|
616
|
+
proto.google.api.HttpRule.prototype.clearCustom = function () {
|
|
617
|
+
return this.setCustom(undefined);
|
|
759
618
|
};
|
|
760
|
-
|
|
761
|
-
|
|
762
619
|
/**
|
|
763
620
|
* Returns whether this field is set.
|
|
764
621
|
* @return {boolean}
|
|
765
622
|
*/
|
|
766
|
-
proto.google.api.HttpRule.prototype.hasCustom = function() {
|
|
767
|
-
|
|
623
|
+
proto.google.api.HttpRule.prototype.hasCustom = function () {
|
|
624
|
+
return jspb.Message.getField(this, 8) != null;
|
|
768
625
|
};
|
|
769
|
-
|
|
770
|
-
|
|
771
626
|
/**
|
|
772
627
|
* optional string body = 7;
|
|
773
628
|
* @return {string}
|
|
774
629
|
*/
|
|
775
|
-
proto.google.api.HttpRule.prototype.getBody = function() {
|
|
776
|
-
|
|
630
|
+
proto.google.api.HttpRule.prototype.getBody = function () {
|
|
631
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
777
632
|
};
|
|
778
|
-
|
|
779
|
-
|
|
780
633
|
/**
|
|
781
634
|
* @param {string} value
|
|
782
635
|
* @return {!proto.google.api.HttpRule} returns this
|
|
783
636
|
*/
|
|
784
|
-
proto.google.api.HttpRule.prototype.setBody = function(value) {
|
|
785
|
-
|
|
637
|
+
proto.google.api.HttpRule.prototype.setBody = function (value) {
|
|
638
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
786
639
|
};
|
|
787
|
-
|
|
788
|
-
|
|
789
640
|
/**
|
|
790
641
|
* optional string response_body = 12;
|
|
791
642
|
* @return {string}
|
|
792
643
|
*/
|
|
793
|
-
proto.google.api.HttpRule.prototype.getResponseBody = function() {
|
|
794
|
-
|
|
644
|
+
proto.google.api.HttpRule.prototype.getResponseBody = function () {
|
|
645
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
795
646
|
};
|
|
796
|
-
|
|
797
|
-
|
|
798
647
|
/**
|
|
799
648
|
* @param {string} value
|
|
800
649
|
* @return {!proto.google.api.HttpRule} returns this
|
|
801
650
|
*/
|
|
802
|
-
proto.google.api.HttpRule.prototype.setResponseBody = function(value) {
|
|
803
|
-
|
|
651
|
+
proto.google.api.HttpRule.prototype.setResponseBody = function (value) {
|
|
652
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
804
653
|
};
|
|
805
|
-
|
|
806
|
-
|
|
807
654
|
/**
|
|
808
655
|
* repeated HttpRule additional_bindings = 11;
|
|
809
656
|
* @return {!Array<!proto.google.api.HttpRule>}
|
|
810
657
|
*/
|
|
811
|
-
proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function() {
|
|
812
|
-
|
|
813
|
-
jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11));
|
|
658
|
+
proto.google.api.HttpRule.prototype.getAdditionalBindingsList = function () {
|
|
659
|
+
return /** @type{!Array<!proto.google.api.HttpRule>} */ (jspb.Message.getRepeatedWrapperField(this, proto.google.api.HttpRule, 11));
|
|
814
660
|
};
|
|
815
|
-
|
|
816
|
-
|
|
817
661
|
/**
|
|
818
662
|
* @param {!Array<!proto.google.api.HttpRule>} value
|
|
819
663
|
* @return {!proto.google.api.HttpRule} returns this
|
|
820
664
|
*/
|
|
821
|
-
proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function(value) {
|
|
822
|
-
|
|
665
|
+
proto.google.api.HttpRule.prototype.setAdditionalBindingsList = function (value) {
|
|
666
|
+
return jspb.Message.setRepeatedWrapperField(this, 11, value);
|
|
823
667
|
};
|
|
824
|
-
|
|
825
|
-
|
|
826
668
|
/**
|
|
827
669
|
* @param {!proto.google.api.HttpRule=} opt_value
|
|
828
670
|
* @param {number=} opt_index
|
|
829
671
|
* @return {!proto.google.api.HttpRule}
|
|
830
672
|
*/
|
|
831
|
-
proto.google.api.HttpRule.prototype.addAdditionalBindings = function(opt_value, opt_index) {
|
|
832
|
-
|
|
673
|
+
proto.google.api.HttpRule.prototype.addAdditionalBindings = function (opt_value, opt_index) {
|
|
674
|
+
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.google.api.HttpRule, opt_index);
|
|
833
675
|
};
|
|
834
|
-
|
|
835
|
-
|
|
836
676
|
/**
|
|
837
677
|
* Clears the list making it empty but non-null.
|
|
838
678
|
* @return {!proto.google.api.HttpRule} returns this
|
|
839
679
|
*/
|
|
840
|
-
proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function() {
|
|
841
|
-
|
|
680
|
+
proto.google.api.HttpRule.prototype.clearAdditionalBindingsList = function () {
|
|
681
|
+
return this.setAdditionalBindingsList([]);
|
|
842
682
|
};
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
683
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
849
|
-
/**
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
proto.google.api.CustomHttpPattern.prototype.toObject = function(opt_includeInstance) {
|
|
862
|
-
|
|
863
|
-
};
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
}
|
|
884
|
-
return obj;
|
|
885
|
-
};
|
|
684
|
+
/**
|
|
685
|
+
* Creates an object representation of this proto.
|
|
686
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
687
|
+
* Optional fields that are not set will be set to undefined.
|
|
688
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
689
|
+
* For the list of reserved names please see:
|
|
690
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
691
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
692
|
+
* JSPB instance for transitional soy proto support:
|
|
693
|
+
* http://goto/soy-param-migration
|
|
694
|
+
* @return {!Object}
|
|
695
|
+
*/
|
|
696
|
+
proto.google.api.CustomHttpPattern.prototype.toObject = function (opt_includeInstance) {
|
|
697
|
+
return proto.google.api.CustomHttpPattern.toObject(opt_includeInstance, this);
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Static version of the {@see toObject} method.
|
|
701
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
702
|
+
* the JSPB instance for transitional soy proto support:
|
|
703
|
+
* http://goto/soy-param-migration
|
|
704
|
+
* @param {!proto.google.api.CustomHttpPattern} msg The msg instance to transform.
|
|
705
|
+
* @return {!Object}
|
|
706
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
707
|
+
*/
|
|
708
|
+
proto.google.api.CustomHttpPattern.toObject = function (includeInstance, msg) {
|
|
709
|
+
var f, obj = {
|
|
710
|
+
kind: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
711
|
+
path: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
712
|
+
};
|
|
713
|
+
if (includeInstance) {
|
|
714
|
+
obj.$jspbMessageInstance = msg;
|
|
715
|
+
}
|
|
716
|
+
return obj;
|
|
717
|
+
};
|
|
886
718
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
719
|
/**
|
|
890
720
|
* Deserializes binary data (in protobuf wire format).
|
|
891
721
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
892
722
|
* @return {!proto.google.api.CustomHttpPattern}
|
|
893
723
|
*/
|
|
894
|
-
proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) {
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
724
|
+
proto.google.api.CustomHttpPattern.deserializeBinary = function (bytes) {
|
|
725
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
726
|
+
var msg = new proto.google.api.CustomHttpPattern;
|
|
727
|
+
return proto.google.api.CustomHttpPattern.deserializeBinaryFromReader(msg, reader);
|
|
898
728
|
};
|
|
899
|
-
|
|
900
|
-
|
|
901
729
|
/**
|
|
902
730
|
* Deserializes binary data (in protobuf wire format) from the
|
|
903
731
|
* given reader into the given message object.
|
|
@@ -905,41 +733,37 @@ proto.google.api.CustomHttpPattern.deserializeBinary = function(bytes) {
|
|
|
905
733
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
906
734
|
* @return {!proto.google.api.CustomHttpPattern}
|
|
907
735
|
*/
|
|
908
|
-
proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function(msg, reader) {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
736
|
+
proto.google.api.CustomHttpPattern.deserializeBinaryFromReader = function (msg, reader) {
|
|
737
|
+
while (reader.nextField()) {
|
|
738
|
+
if (reader.isEndGroup()) {
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
var field = reader.getFieldNumber();
|
|
742
|
+
switch (field) {
|
|
743
|
+
case 1:
|
|
744
|
+
var value = /** @type {string} */ (reader.readString());
|
|
745
|
+
msg.setKind(value);
|
|
746
|
+
break;
|
|
747
|
+
case 2:
|
|
748
|
+
var value = /** @type {string} */ (reader.readString());
|
|
749
|
+
msg.setPath(value);
|
|
750
|
+
break;
|
|
751
|
+
default:
|
|
752
|
+
reader.skipField();
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
912
755
|
}
|
|
913
|
-
|
|
914
|
-
switch (field) {
|
|
915
|
-
case 1:
|
|
916
|
-
var value = /** @type {string} */ (reader.readString());
|
|
917
|
-
msg.setKind(value);
|
|
918
|
-
break;
|
|
919
|
-
case 2:
|
|
920
|
-
var value = /** @type {string} */ (reader.readString());
|
|
921
|
-
msg.setPath(value);
|
|
922
|
-
break;
|
|
923
|
-
default:
|
|
924
|
-
reader.skipField();
|
|
925
|
-
break;
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
return msg;
|
|
756
|
+
return msg;
|
|
929
757
|
};
|
|
930
|
-
|
|
931
|
-
|
|
932
758
|
/**
|
|
933
759
|
* Serializes the message to binary data (in protobuf wire format).
|
|
934
760
|
* @return {!Uint8Array}
|
|
935
761
|
*/
|
|
936
|
-
proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
762
|
+
proto.google.api.CustomHttpPattern.prototype.serializeBinary = function () {
|
|
763
|
+
var writer = new jspb.BinaryWriter();
|
|
764
|
+
proto.google.api.CustomHttpPattern.serializeBinaryToWriter(this, writer);
|
|
765
|
+
return writer.getResultBuffer();
|
|
940
766
|
};
|
|
941
|
-
|
|
942
|
-
|
|
943
767
|
/**
|
|
944
768
|
* Serializes the given message to binary data (in protobuf wire
|
|
945
769
|
* format), writing to the given BinaryWriter.
|
|
@@ -947,59 +771,43 @@ proto.google.api.CustomHttpPattern.prototype.serializeBinary = function() {
|
|
|
947
771
|
* @param {!jspb.BinaryWriter} writer
|
|
948
772
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
949
773
|
*/
|
|
950
|
-
proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function(message, writer) {
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
)
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
writer.writeString(
|
|
962
|
-
2,
|
|
963
|
-
f
|
|
964
|
-
);
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
|
|
774
|
+
proto.google.api.CustomHttpPattern.serializeBinaryToWriter = function (message, writer) {
|
|
775
|
+
var f = undefined;
|
|
776
|
+
f = message.getKind();
|
|
777
|
+
if (f.length > 0) {
|
|
778
|
+
writer.writeString(1, f);
|
|
779
|
+
}
|
|
780
|
+
f = message.getPath();
|
|
781
|
+
if (f.length > 0) {
|
|
782
|
+
writer.writeString(2, f);
|
|
783
|
+
}
|
|
784
|
+
};
|
|
969
785
|
/**
|
|
970
786
|
* optional string kind = 1;
|
|
971
787
|
* @return {string}
|
|
972
788
|
*/
|
|
973
|
-
proto.google.api.CustomHttpPattern.prototype.getKind = function() {
|
|
974
|
-
|
|
789
|
+
proto.google.api.CustomHttpPattern.prototype.getKind = function () {
|
|
790
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
975
791
|
};
|
|
976
|
-
|
|
977
|
-
|
|
978
792
|
/**
|
|
979
793
|
* @param {string} value
|
|
980
794
|
* @return {!proto.google.api.CustomHttpPattern} returns this
|
|
981
795
|
*/
|
|
982
|
-
proto.google.api.CustomHttpPattern.prototype.setKind = function(value) {
|
|
983
|
-
|
|
796
|
+
proto.google.api.CustomHttpPattern.prototype.setKind = function (value) {
|
|
797
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
984
798
|
};
|
|
985
|
-
|
|
986
|
-
|
|
987
799
|
/**
|
|
988
800
|
* optional string path = 2;
|
|
989
801
|
* @return {string}
|
|
990
802
|
*/
|
|
991
|
-
proto.google.api.CustomHttpPattern.prototype.getPath = function() {
|
|
992
|
-
|
|
803
|
+
proto.google.api.CustomHttpPattern.prototype.getPath = function () {
|
|
804
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
993
805
|
};
|
|
994
|
-
|
|
995
|
-
|
|
996
806
|
/**
|
|
997
807
|
* @param {string} value
|
|
998
808
|
* @return {!proto.google.api.CustomHttpPattern} returns this
|
|
999
809
|
*/
|
|
1000
|
-
proto.google.api.CustomHttpPattern.prototype.setPath = function(value) {
|
|
1001
|
-
|
|
810
|
+
proto.google.api.CustomHttpPattern.prototype.setPath = function (value) {
|
|
811
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1002
812
|
};
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
813
|
goog.object.extend(exports, proto.google.api);
|