@aceplus/smartace-api 3.7.0-alpha.14 → 3.7.0-alpha.16

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/spic.config_pb.js CHANGED
@@ -35,6 +35,13 @@ goog.exportSymbol('proto.Spic.ConfigProto.RetrieveRequest', null, global);
35
35
  goog.exportSymbol('proto.Spic.ConfigProto.SearchReply', null, global);
36
36
  goog.exportSymbol('proto.Spic.ConfigProto.SearchRequest', null, global);
37
37
  goog.exportSymbol('proto.Spic.ConfigProto.UpdateRequest', null, global);
38
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto', null, global);
39
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto.CreateRequest', null, global);
40
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto.DeleteRequest', null, global);
41
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto.RetrieveRequest', null, global);
42
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto.SearchReply', null, global);
43
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto.SearchRequest', null, global);
44
+ goog.exportSymbol('proto.Spic.ConfigTemplateProto.UpdateRequest', null, global);
38
45
  /**
39
46
  * Generated by JsPbCodeGenerator.
40
47
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -182,6 +189,153 @@ if (goog.DEBUG && !COMPILED) {
182
189
  */
183
190
  proto.Spic.ConfigProto.ConfigFilters.displayName = 'proto.Spic.ConfigProto.ConfigFilters';
184
191
  }
192
+ /**
193
+ * Generated by JsPbCodeGenerator.
194
+ * @param {Array=} opt_data Optional initial data array, typically from a
195
+ * server response, or constructed directly in Javascript. The array is used
196
+ * in place and becomes part of the constructed object. It is not cloned.
197
+ * If no data is provided, the constructed object will be empty, but still
198
+ * valid.
199
+ * @extends {jspb.Message}
200
+ * @constructor
201
+ */
202
+ proto.Spic.ConfigTemplateProto = function(opt_data) {
203
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
204
+ };
205
+ goog.inherits(proto.Spic.ConfigTemplateProto, jspb.Message);
206
+ if (goog.DEBUG && !COMPILED) {
207
+ /**
208
+ * @public
209
+ * @override
210
+ */
211
+ proto.Spic.ConfigTemplateProto.displayName = 'proto.Spic.ConfigTemplateProto';
212
+ }
213
+ /**
214
+ * Generated by JsPbCodeGenerator.
215
+ * @param {Array=} opt_data Optional initial data array, typically from a
216
+ * server response, or constructed directly in Javascript. The array is used
217
+ * in place and becomes part of the constructed object. It is not cloned.
218
+ * If no data is provided, the constructed object will be empty, but still
219
+ * valid.
220
+ * @extends {jspb.Message}
221
+ * @constructor
222
+ */
223
+ proto.Spic.ConfigTemplateProto.CreateRequest = function(opt_data) {
224
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
225
+ };
226
+ goog.inherits(proto.Spic.ConfigTemplateProto.CreateRequest, jspb.Message);
227
+ if (goog.DEBUG && !COMPILED) {
228
+ /**
229
+ * @public
230
+ * @override
231
+ */
232
+ proto.Spic.ConfigTemplateProto.CreateRequest.displayName = 'proto.Spic.ConfigTemplateProto.CreateRequest';
233
+ }
234
+ /**
235
+ * Generated by JsPbCodeGenerator.
236
+ * @param {Array=} opt_data Optional initial data array, typically from a
237
+ * server response, or constructed directly in Javascript. The array is used
238
+ * in place and becomes part of the constructed object. It is not cloned.
239
+ * If no data is provided, the constructed object will be empty, but still
240
+ * valid.
241
+ * @extends {jspb.Message}
242
+ * @constructor
243
+ */
244
+ proto.Spic.ConfigTemplateProto.RetrieveRequest = function(opt_data) {
245
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
246
+ };
247
+ goog.inherits(proto.Spic.ConfigTemplateProto.RetrieveRequest, jspb.Message);
248
+ if (goog.DEBUG && !COMPILED) {
249
+ /**
250
+ * @public
251
+ * @override
252
+ */
253
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.displayName = 'proto.Spic.ConfigTemplateProto.RetrieveRequest';
254
+ }
255
+ /**
256
+ * Generated by JsPbCodeGenerator.
257
+ * @param {Array=} opt_data Optional initial data array, typically from a
258
+ * server response, or constructed directly in Javascript. The array is used
259
+ * in place and becomes part of the constructed object. It is not cloned.
260
+ * If no data is provided, the constructed object will be empty, but still
261
+ * valid.
262
+ * @extends {jspb.Message}
263
+ * @constructor
264
+ */
265
+ proto.Spic.ConfigTemplateProto.UpdateRequest = function(opt_data) {
266
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
267
+ };
268
+ goog.inherits(proto.Spic.ConfigTemplateProto.UpdateRequest, jspb.Message);
269
+ if (goog.DEBUG && !COMPILED) {
270
+ /**
271
+ * @public
272
+ * @override
273
+ */
274
+ proto.Spic.ConfigTemplateProto.UpdateRequest.displayName = 'proto.Spic.ConfigTemplateProto.UpdateRequest';
275
+ }
276
+ /**
277
+ * Generated by JsPbCodeGenerator.
278
+ * @param {Array=} opt_data Optional initial data array, typically from a
279
+ * server response, or constructed directly in Javascript. The array is used
280
+ * in place and becomes part of the constructed object. It is not cloned.
281
+ * If no data is provided, the constructed object will be empty, but still
282
+ * valid.
283
+ * @extends {jspb.Message}
284
+ * @constructor
285
+ */
286
+ proto.Spic.ConfigTemplateProto.DeleteRequest = function(opt_data) {
287
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
288
+ };
289
+ goog.inherits(proto.Spic.ConfigTemplateProto.DeleteRequest, jspb.Message);
290
+ if (goog.DEBUG && !COMPILED) {
291
+ /**
292
+ * @public
293
+ * @override
294
+ */
295
+ proto.Spic.ConfigTemplateProto.DeleteRequest.displayName = 'proto.Spic.ConfigTemplateProto.DeleteRequest';
296
+ }
297
+ /**
298
+ * Generated by JsPbCodeGenerator.
299
+ * @param {Array=} opt_data Optional initial data array, typically from a
300
+ * server response, or constructed directly in Javascript. The array is used
301
+ * in place and becomes part of the constructed object. It is not cloned.
302
+ * If no data is provided, the constructed object will be empty, but still
303
+ * valid.
304
+ * @extends {jspb.Message}
305
+ * @constructor
306
+ */
307
+ proto.Spic.ConfigTemplateProto.SearchRequest = function(opt_data) {
308
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
309
+ };
310
+ goog.inherits(proto.Spic.ConfigTemplateProto.SearchRequest, jspb.Message);
311
+ if (goog.DEBUG && !COMPILED) {
312
+ /**
313
+ * @public
314
+ * @override
315
+ */
316
+ proto.Spic.ConfigTemplateProto.SearchRequest.displayName = 'proto.Spic.ConfigTemplateProto.SearchRequest';
317
+ }
318
+ /**
319
+ * Generated by JsPbCodeGenerator.
320
+ * @param {Array=} opt_data Optional initial data array, typically from a
321
+ * server response, or constructed directly in Javascript. The array is used
322
+ * in place and becomes part of the constructed object. It is not cloned.
323
+ * If no data is provided, the constructed object will be empty, but still
324
+ * valid.
325
+ * @extends {jspb.Message}
326
+ * @constructor
327
+ */
328
+ proto.Spic.ConfigTemplateProto.SearchReply = function(opt_data) {
329
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.ConfigTemplateProto.SearchReply.repeatedFields_, null);
330
+ };
331
+ goog.inherits(proto.Spic.ConfigTemplateProto.SearchReply, jspb.Message);
332
+ if (goog.DEBUG && !COMPILED) {
333
+ /**
334
+ * @public
335
+ * @override
336
+ */
337
+ proto.Spic.ConfigTemplateProto.SearchReply.displayName = 'proto.Spic.ConfigTemplateProto.SearchReply';
338
+ }
185
339
 
186
340
  /**
187
341
  * List of repeated fields within this message type.
@@ -1888,4 +2042,1175 @@ proto.Spic.ConfigProto.prototype.clearFromCrcsList = function() {
1888
2042
  };
1889
2043
 
1890
2044
 
2045
+
2046
+
2047
+
2048
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2049
+ /**
2050
+ * Creates an object representation of this proto.
2051
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2052
+ * Optional fields that are not set will be set to undefined.
2053
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2054
+ * For the list of reserved names please see:
2055
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2056
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2057
+ * JSPB instance for transitional soy proto support:
2058
+ * http://goto/soy-param-migration
2059
+ * @return {!Object}
2060
+ */
2061
+ proto.Spic.ConfigTemplateProto.prototype.toObject = function(opt_includeInstance) {
2062
+ return proto.Spic.ConfigTemplateProto.toObject(opt_includeInstance, this);
2063
+ };
2064
+
2065
+
2066
+ /**
2067
+ * Static version of the {@see toObject} method.
2068
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2069
+ * the JSPB instance for transitional soy proto support:
2070
+ * http://goto/soy-param-migration
2071
+ * @param {!proto.Spic.ConfigTemplateProto} msg The msg instance to transform.
2072
+ * @return {!Object}
2073
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2074
+ */
2075
+ proto.Spic.ConfigTemplateProto.toObject = function(includeInstance, msg) {
2076
+ var f, obj = {
2077
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2078
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2079
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
2080
+ };
2081
+
2082
+ if (includeInstance) {
2083
+ obj.$jspbMessageInstance = msg;
2084
+ }
2085
+ return obj;
2086
+ };
2087
+ }
2088
+
2089
+
2090
+ /**
2091
+ * Deserializes binary data (in protobuf wire format).
2092
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2093
+ * @return {!proto.Spic.ConfigTemplateProto}
2094
+ */
2095
+ proto.Spic.ConfigTemplateProto.deserializeBinary = function(bytes) {
2096
+ var reader = new jspb.BinaryReader(bytes);
2097
+ var msg = new proto.Spic.ConfigTemplateProto;
2098
+ return proto.Spic.ConfigTemplateProto.deserializeBinaryFromReader(msg, reader);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Deserializes binary data (in protobuf wire format) from the
2104
+ * given reader into the given message object.
2105
+ * @param {!proto.Spic.ConfigTemplateProto} msg The message object to deserialize into.
2106
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2107
+ * @return {!proto.Spic.ConfigTemplateProto}
2108
+ */
2109
+ proto.Spic.ConfigTemplateProto.deserializeBinaryFromReader = function(msg, reader) {
2110
+ while (reader.nextField()) {
2111
+ if (reader.isEndGroup()) {
2112
+ break;
2113
+ }
2114
+ var field = reader.getFieldNumber();
2115
+ switch (field) {
2116
+ case 1:
2117
+ var value = /** @type {number} */ (reader.readInt32());
2118
+ msg.setId(value);
2119
+ break;
2120
+ case 2:
2121
+ var value = /** @type {string} */ (reader.readString());
2122
+ msg.setName(value);
2123
+ break;
2124
+ case 3:
2125
+ var value = /** @type {string} */ (reader.readString());
2126
+ msg.setConfig(value);
2127
+ break;
2128
+ default:
2129
+ reader.skipField();
2130
+ break;
2131
+ }
2132
+ }
2133
+ return msg;
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * Serializes the message to binary data (in protobuf wire format).
2139
+ * @return {!Uint8Array}
2140
+ */
2141
+ proto.Spic.ConfigTemplateProto.prototype.serializeBinary = function() {
2142
+ var writer = new jspb.BinaryWriter();
2143
+ proto.Spic.ConfigTemplateProto.serializeBinaryToWriter(this, writer);
2144
+ return writer.getResultBuffer();
2145
+ };
2146
+
2147
+
2148
+ /**
2149
+ * Serializes the given message to binary data (in protobuf wire
2150
+ * format), writing to the given BinaryWriter.
2151
+ * @param {!proto.Spic.ConfigTemplateProto} message
2152
+ * @param {!jspb.BinaryWriter} writer
2153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2154
+ */
2155
+ proto.Spic.ConfigTemplateProto.serializeBinaryToWriter = function(message, writer) {
2156
+ var f = undefined;
2157
+ f = message.getId();
2158
+ if (f !== 0) {
2159
+ writer.writeInt32(
2160
+ 1,
2161
+ f
2162
+ );
2163
+ }
2164
+ f = message.getName();
2165
+ if (f.length > 0) {
2166
+ writer.writeString(
2167
+ 2,
2168
+ f
2169
+ );
2170
+ }
2171
+ f = message.getConfig();
2172
+ if (f.length > 0) {
2173
+ writer.writeString(
2174
+ 3,
2175
+ f
2176
+ );
2177
+ }
2178
+ };
2179
+
2180
+
2181
+
2182
+
2183
+
2184
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2185
+ /**
2186
+ * Creates an object representation of this proto.
2187
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2188
+ * Optional fields that are not set will be set to undefined.
2189
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2190
+ * For the list of reserved names please see:
2191
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2192
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2193
+ * JSPB instance for transitional soy proto support:
2194
+ * http://goto/soy-param-migration
2195
+ * @return {!Object}
2196
+ */
2197
+ proto.Spic.ConfigTemplateProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
2198
+ return proto.Spic.ConfigTemplateProto.CreateRequest.toObject(opt_includeInstance, this);
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * Static version of the {@see toObject} method.
2204
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2205
+ * the JSPB instance for transitional soy proto support:
2206
+ * http://goto/soy-param-migration
2207
+ * @param {!proto.Spic.ConfigTemplateProto.CreateRequest} msg The msg instance to transform.
2208
+ * @return {!Object}
2209
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2210
+ */
2211
+ proto.Spic.ConfigTemplateProto.CreateRequest.toObject = function(includeInstance, msg) {
2212
+ var f, obj = {
2213
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2214
+ config: jspb.Message.getFieldWithDefault(msg, 2, "")
2215
+ };
2216
+
2217
+ if (includeInstance) {
2218
+ obj.$jspbMessageInstance = msg;
2219
+ }
2220
+ return obj;
2221
+ };
2222
+ }
2223
+
2224
+
2225
+ /**
2226
+ * Deserializes binary data (in protobuf wire format).
2227
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2228
+ * @return {!proto.Spic.ConfigTemplateProto.CreateRequest}
2229
+ */
2230
+ proto.Spic.ConfigTemplateProto.CreateRequest.deserializeBinary = function(bytes) {
2231
+ var reader = new jspb.BinaryReader(bytes);
2232
+ var msg = new proto.Spic.ConfigTemplateProto.CreateRequest;
2233
+ return proto.Spic.ConfigTemplateProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
2234
+ };
2235
+
2236
+
2237
+ /**
2238
+ * Deserializes binary data (in protobuf wire format) from the
2239
+ * given reader into the given message object.
2240
+ * @param {!proto.Spic.ConfigTemplateProto.CreateRequest} msg The message object to deserialize into.
2241
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2242
+ * @return {!proto.Spic.ConfigTemplateProto.CreateRequest}
2243
+ */
2244
+ proto.Spic.ConfigTemplateProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
2245
+ while (reader.nextField()) {
2246
+ if (reader.isEndGroup()) {
2247
+ break;
2248
+ }
2249
+ var field = reader.getFieldNumber();
2250
+ switch (field) {
2251
+ case 1:
2252
+ var value = /** @type {string} */ (reader.readString());
2253
+ msg.setName(value);
2254
+ break;
2255
+ case 2:
2256
+ var value = /** @type {string} */ (reader.readString());
2257
+ msg.setConfig(value);
2258
+ break;
2259
+ default:
2260
+ reader.skipField();
2261
+ break;
2262
+ }
2263
+ }
2264
+ return msg;
2265
+ };
2266
+
2267
+
2268
+ /**
2269
+ * Serializes the message to binary data (in protobuf wire format).
2270
+ * @return {!Uint8Array}
2271
+ */
2272
+ proto.Spic.ConfigTemplateProto.CreateRequest.prototype.serializeBinary = function() {
2273
+ var writer = new jspb.BinaryWriter();
2274
+ proto.Spic.ConfigTemplateProto.CreateRequest.serializeBinaryToWriter(this, writer);
2275
+ return writer.getResultBuffer();
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * Serializes the given message to binary data (in protobuf wire
2281
+ * format), writing to the given BinaryWriter.
2282
+ * @param {!proto.Spic.ConfigTemplateProto.CreateRequest} message
2283
+ * @param {!jspb.BinaryWriter} writer
2284
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2285
+ */
2286
+ proto.Spic.ConfigTemplateProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
2287
+ var f = undefined;
2288
+ f = message.getName();
2289
+ if (f.length > 0) {
2290
+ writer.writeString(
2291
+ 1,
2292
+ f
2293
+ );
2294
+ }
2295
+ f = message.getConfig();
2296
+ if (f.length > 0) {
2297
+ writer.writeString(
2298
+ 2,
2299
+ f
2300
+ );
2301
+ }
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * optional string name = 1;
2307
+ * @return {string}
2308
+ */
2309
+ proto.Spic.ConfigTemplateProto.CreateRequest.prototype.getName = function() {
2310
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2311
+ };
2312
+
2313
+
2314
+ /**
2315
+ * @param {string} value
2316
+ * @return {!proto.Spic.ConfigTemplateProto.CreateRequest} returns this
2317
+ */
2318
+ proto.Spic.ConfigTemplateProto.CreateRequest.prototype.setName = function(value) {
2319
+ return jspb.Message.setProto3StringField(this, 1, value);
2320
+ };
2321
+
2322
+
2323
+ /**
2324
+ * optional string config = 2;
2325
+ * @return {string}
2326
+ */
2327
+ proto.Spic.ConfigTemplateProto.CreateRequest.prototype.getConfig = function() {
2328
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2329
+ };
2330
+
2331
+
2332
+ /**
2333
+ * @param {string} value
2334
+ * @return {!proto.Spic.ConfigTemplateProto.CreateRequest} returns this
2335
+ */
2336
+ proto.Spic.ConfigTemplateProto.CreateRequest.prototype.setConfig = function(value) {
2337
+ return jspb.Message.setProto3StringField(this, 2, value);
2338
+ };
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2345
+ /**
2346
+ * Creates an object representation of this proto.
2347
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2348
+ * Optional fields that are not set will be set to undefined.
2349
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2350
+ * For the list of reserved names please see:
2351
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2352
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2353
+ * JSPB instance for transitional soy proto support:
2354
+ * http://goto/soy-param-migration
2355
+ * @return {!Object}
2356
+ */
2357
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
2358
+ return proto.Spic.ConfigTemplateProto.RetrieveRequest.toObject(opt_includeInstance, this);
2359
+ };
2360
+
2361
+
2362
+ /**
2363
+ * Static version of the {@see toObject} method.
2364
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2365
+ * the JSPB instance for transitional soy proto support:
2366
+ * http://goto/soy-param-migration
2367
+ * @param {!proto.Spic.ConfigTemplateProto.RetrieveRequest} msg The msg instance to transform.
2368
+ * @return {!Object}
2369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2370
+ */
2371
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.toObject = function(includeInstance, msg) {
2372
+ var f, obj = {
2373
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2374
+ };
2375
+
2376
+ if (includeInstance) {
2377
+ obj.$jspbMessageInstance = msg;
2378
+ }
2379
+ return obj;
2380
+ };
2381
+ }
2382
+
2383
+
2384
+ /**
2385
+ * Deserializes binary data (in protobuf wire format).
2386
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2387
+ * @return {!proto.Spic.ConfigTemplateProto.RetrieveRequest}
2388
+ */
2389
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.deserializeBinary = function(bytes) {
2390
+ var reader = new jspb.BinaryReader(bytes);
2391
+ var msg = new proto.Spic.ConfigTemplateProto.RetrieveRequest;
2392
+ return proto.Spic.ConfigTemplateProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
2393
+ };
2394
+
2395
+
2396
+ /**
2397
+ * Deserializes binary data (in protobuf wire format) from the
2398
+ * given reader into the given message object.
2399
+ * @param {!proto.Spic.ConfigTemplateProto.RetrieveRequest} msg The message object to deserialize into.
2400
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2401
+ * @return {!proto.Spic.ConfigTemplateProto.RetrieveRequest}
2402
+ */
2403
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
2404
+ while (reader.nextField()) {
2405
+ if (reader.isEndGroup()) {
2406
+ break;
2407
+ }
2408
+ var field = reader.getFieldNumber();
2409
+ switch (field) {
2410
+ case 1:
2411
+ var value = /** @type {number} */ (reader.readInt32());
2412
+ msg.setId(value);
2413
+ break;
2414
+ default:
2415
+ reader.skipField();
2416
+ break;
2417
+ }
2418
+ }
2419
+ return msg;
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * Serializes the message to binary data (in protobuf wire format).
2425
+ * @return {!Uint8Array}
2426
+ */
2427
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.prototype.serializeBinary = function() {
2428
+ var writer = new jspb.BinaryWriter();
2429
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
2430
+ return writer.getResultBuffer();
2431
+ };
2432
+
2433
+
2434
+ /**
2435
+ * Serializes the given message to binary data (in protobuf wire
2436
+ * format), writing to the given BinaryWriter.
2437
+ * @param {!proto.Spic.ConfigTemplateProto.RetrieveRequest} message
2438
+ * @param {!jspb.BinaryWriter} writer
2439
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2440
+ */
2441
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
2442
+ var f = undefined;
2443
+ f = message.getId();
2444
+ if (f !== 0) {
2445
+ writer.writeInt32(
2446
+ 1,
2447
+ f
2448
+ );
2449
+ }
2450
+ };
2451
+
2452
+
2453
+ /**
2454
+ * optional int32 id = 1;
2455
+ * @return {number}
2456
+ */
2457
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.prototype.getId = function() {
2458
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2459
+ };
2460
+
2461
+
2462
+ /**
2463
+ * @param {number} value
2464
+ * @return {!proto.Spic.ConfigTemplateProto.RetrieveRequest} returns this
2465
+ */
2466
+ proto.Spic.ConfigTemplateProto.RetrieveRequest.prototype.setId = function(value) {
2467
+ return jspb.Message.setProto3IntField(this, 1, value);
2468
+ };
2469
+
2470
+
2471
+
2472
+
2473
+
2474
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2475
+ /**
2476
+ * Creates an object representation of this proto.
2477
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2478
+ * Optional fields that are not set will be set to undefined.
2479
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2480
+ * For the list of reserved names please see:
2481
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2482
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2483
+ * JSPB instance for transitional soy proto support:
2484
+ * http://goto/soy-param-migration
2485
+ * @return {!Object}
2486
+ */
2487
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
2488
+ return proto.Spic.ConfigTemplateProto.UpdateRequest.toObject(opt_includeInstance, this);
2489
+ };
2490
+
2491
+
2492
+ /**
2493
+ * Static version of the {@see toObject} method.
2494
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2495
+ * the JSPB instance for transitional soy proto support:
2496
+ * http://goto/soy-param-migration
2497
+ * @param {!proto.Spic.ConfigTemplateProto.UpdateRequest} msg The msg instance to transform.
2498
+ * @return {!Object}
2499
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2500
+ */
2501
+ proto.Spic.ConfigTemplateProto.UpdateRequest.toObject = function(includeInstance, msg) {
2502
+ var f, obj = {
2503
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2504
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2505
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
2506
+ };
2507
+
2508
+ if (includeInstance) {
2509
+ obj.$jspbMessageInstance = msg;
2510
+ }
2511
+ return obj;
2512
+ };
2513
+ }
2514
+
2515
+
2516
+ /**
2517
+ * Deserializes binary data (in protobuf wire format).
2518
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2519
+ * @return {!proto.Spic.ConfigTemplateProto.UpdateRequest}
2520
+ */
2521
+ proto.Spic.ConfigTemplateProto.UpdateRequest.deserializeBinary = function(bytes) {
2522
+ var reader = new jspb.BinaryReader(bytes);
2523
+ var msg = new proto.Spic.ConfigTemplateProto.UpdateRequest;
2524
+ return proto.Spic.ConfigTemplateProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
2525
+ };
2526
+
2527
+
2528
+ /**
2529
+ * Deserializes binary data (in protobuf wire format) from the
2530
+ * given reader into the given message object.
2531
+ * @param {!proto.Spic.ConfigTemplateProto.UpdateRequest} msg The message object to deserialize into.
2532
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2533
+ * @return {!proto.Spic.ConfigTemplateProto.UpdateRequest}
2534
+ */
2535
+ proto.Spic.ConfigTemplateProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
2536
+ while (reader.nextField()) {
2537
+ if (reader.isEndGroup()) {
2538
+ break;
2539
+ }
2540
+ var field = reader.getFieldNumber();
2541
+ switch (field) {
2542
+ case 1:
2543
+ var value = /** @type {number} */ (reader.readInt32());
2544
+ msg.setId(value);
2545
+ break;
2546
+ case 2:
2547
+ var value = /** @type {string} */ (reader.readString());
2548
+ msg.setName(value);
2549
+ break;
2550
+ case 3:
2551
+ var value = /** @type {string} */ (reader.readString());
2552
+ msg.setConfig(value);
2553
+ break;
2554
+ default:
2555
+ reader.skipField();
2556
+ break;
2557
+ }
2558
+ }
2559
+ return msg;
2560
+ };
2561
+
2562
+
2563
+ /**
2564
+ * Serializes the message to binary data (in protobuf wire format).
2565
+ * @return {!Uint8Array}
2566
+ */
2567
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.serializeBinary = function() {
2568
+ var writer = new jspb.BinaryWriter();
2569
+ proto.Spic.ConfigTemplateProto.UpdateRequest.serializeBinaryToWriter(this, writer);
2570
+ return writer.getResultBuffer();
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * Serializes the given message to binary data (in protobuf wire
2576
+ * format), writing to the given BinaryWriter.
2577
+ * @param {!proto.Spic.ConfigTemplateProto.UpdateRequest} message
2578
+ * @param {!jspb.BinaryWriter} writer
2579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2580
+ */
2581
+ proto.Spic.ConfigTemplateProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
2582
+ var f = undefined;
2583
+ f = message.getId();
2584
+ if (f !== 0) {
2585
+ writer.writeInt32(
2586
+ 1,
2587
+ f
2588
+ );
2589
+ }
2590
+ f = message.getName();
2591
+ if (f.length > 0) {
2592
+ writer.writeString(
2593
+ 2,
2594
+ f
2595
+ );
2596
+ }
2597
+ f = message.getConfig();
2598
+ if (f.length > 0) {
2599
+ writer.writeString(
2600
+ 3,
2601
+ f
2602
+ );
2603
+ }
2604
+ };
2605
+
2606
+
2607
+ /**
2608
+ * optional int32 id = 1;
2609
+ * @return {number}
2610
+ */
2611
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.getId = function() {
2612
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * @param {number} value
2618
+ * @return {!proto.Spic.ConfigTemplateProto.UpdateRequest} returns this
2619
+ */
2620
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.setId = function(value) {
2621
+ return jspb.Message.setProto3IntField(this, 1, value);
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * optional string name = 2;
2627
+ * @return {string}
2628
+ */
2629
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.getName = function() {
2630
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * @param {string} value
2636
+ * @return {!proto.Spic.ConfigTemplateProto.UpdateRequest} returns this
2637
+ */
2638
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.setName = function(value) {
2639
+ return jspb.Message.setProto3StringField(this, 2, value);
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * optional string config = 3;
2645
+ * @return {string}
2646
+ */
2647
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.getConfig = function() {
2648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2649
+ };
2650
+
2651
+
2652
+ /**
2653
+ * @param {string} value
2654
+ * @return {!proto.Spic.ConfigTemplateProto.UpdateRequest} returns this
2655
+ */
2656
+ proto.Spic.ConfigTemplateProto.UpdateRequest.prototype.setConfig = function(value) {
2657
+ return jspb.Message.setProto3StringField(this, 3, value);
2658
+ };
2659
+
2660
+
2661
+
2662
+
2663
+
2664
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2665
+ /**
2666
+ * Creates an object representation of this proto.
2667
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2668
+ * Optional fields that are not set will be set to undefined.
2669
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2670
+ * For the list of reserved names please see:
2671
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2672
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2673
+ * JSPB instance for transitional soy proto support:
2674
+ * http://goto/soy-param-migration
2675
+ * @return {!Object}
2676
+ */
2677
+ proto.Spic.ConfigTemplateProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
2678
+ return proto.Spic.ConfigTemplateProto.DeleteRequest.toObject(opt_includeInstance, this);
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * Static version of the {@see toObject} method.
2684
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2685
+ * the JSPB instance for transitional soy proto support:
2686
+ * http://goto/soy-param-migration
2687
+ * @param {!proto.Spic.ConfigTemplateProto.DeleteRequest} msg The msg instance to transform.
2688
+ * @return {!Object}
2689
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2690
+ */
2691
+ proto.Spic.ConfigTemplateProto.DeleteRequest.toObject = function(includeInstance, msg) {
2692
+ var f, obj = {
2693
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2694
+ };
2695
+
2696
+ if (includeInstance) {
2697
+ obj.$jspbMessageInstance = msg;
2698
+ }
2699
+ return obj;
2700
+ };
2701
+ }
2702
+
2703
+
2704
+ /**
2705
+ * Deserializes binary data (in protobuf wire format).
2706
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2707
+ * @return {!proto.Spic.ConfigTemplateProto.DeleteRequest}
2708
+ */
2709
+ proto.Spic.ConfigTemplateProto.DeleteRequest.deserializeBinary = function(bytes) {
2710
+ var reader = new jspb.BinaryReader(bytes);
2711
+ var msg = new proto.Spic.ConfigTemplateProto.DeleteRequest;
2712
+ return proto.Spic.ConfigTemplateProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
2713
+ };
2714
+
2715
+
2716
+ /**
2717
+ * Deserializes binary data (in protobuf wire format) from the
2718
+ * given reader into the given message object.
2719
+ * @param {!proto.Spic.ConfigTemplateProto.DeleteRequest} msg The message object to deserialize into.
2720
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2721
+ * @return {!proto.Spic.ConfigTemplateProto.DeleteRequest}
2722
+ */
2723
+ proto.Spic.ConfigTemplateProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
2724
+ while (reader.nextField()) {
2725
+ if (reader.isEndGroup()) {
2726
+ break;
2727
+ }
2728
+ var field = reader.getFieldNumber();
2729
+ switch (field) {
2730
+ case 1:
2731
+ var value = /** @type {number} */ (reader.readInt32());
2732
+ msg.setId(value);
2733
+ break;
2734
+ default:
2735
+ reader.skipField();
2736
+ break;
2737
+ }
2738
+ }
2739
+ return msg;
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * Serializes the message to binary data (in protobuf wire format).
2745
+ * @return {!Uint8Array}
2746
+ */
2747
+ proto.Spic.ConfigTemplateProto.DeleteRequest.prototype.serializeBinary = function() {
2748
+ var writer = new jspb.BinaryWriter();
2749
+ proto.Spic.ConfigTemplateProto.DeleteRequest.serializeBinaryToWriter(this, writer);
2750
+ return writer.getResultBuffer();
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * Serializes the given message to binary data (in protobuf wire
2756
+ * format), writing to the given BinaryWriter.
2757
+ * @param {!proto.Spic.ConfigTemplateProto.DeleteRequest} message
2758
+ * @param {!jspb.BinaryWriter} writer
2759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2760
+ */
2761
+ proto.Spic.ConfigTemplateProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
2762
+ var f = undefined;
2763
+ f = message.getId();
2764
+ if (f !== 0) {
2765
+ writer.writeInt32(
2766
+ 1,
2767
+ f
2768
+ );
2769
+ }
2770
+ };
2771
+
2772
+
2773
+ /**
2774
+ * optional int32 id = 1;
2775
+ * @return {number}
2776
+ */
2777
+ proto.Spic.ConfigTemplateProto.DeleteRequest.prototype.getId = function() {
2778
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2779
+ };
2780
+
2781
+
2782
+ /**
2783
+ * @param {number} value
2784
+ * @return {!proto.Spic.ConfigTemplateProto.DeleteRequest} returns this
2785
+ */
2786
+ proto.Spic.ConfigTemplateProto.DeleteRequest.prototype.setId = function(value) {
2787
+ return jspb.Message.setProto3IntField(this, 1, value);
2788
+ };
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2795
+ /**
2796
+ * Creates an object representation of this proto.
2797
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2798
+ * Optional fields that are not set will be set to undefined.
2799
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2800
+ * For the list of reserved names please see:
2801
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2802
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2803
+ * JSPB instance for transitional soy proto support:
2804
+ * http://goto/soy-param-migration
2805
+ * @return {!Object}
2806
+ */
2807
+ proto.Spic.ConfigTemplateProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
2808
+ return proto.Spic.ConfigTemplateProto.SearchRequest.toObject(opt_includeInstance, this);
2809
+ };
2810
+
2811
+
2812
+ /**
2813
+ * Static version of the {@see toObject} method.
2814
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2815
+ * the JSPB instance for transitional soy proto support:
2816
+ * http://goto/soy-param-migration
2817
+ * @param {!proto.Spic.ConfigTemplateProto.SearchRequest} msg The msg instance to transform.
2818
+ * @return {!Object}
2819
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2820
+ */
2821
+ proto.Spic.ConfigTemplateProto.SearchRequest.toObject = function(includeInstance, msg) {
2822
+ var f, obj = {
2823
+ page: jspb.Message.getFieldWithDefault(msg, 1, 0),
2824
+ count: jspb.Message.getFieldWithDefault(msg, 2, 0)
2825
+ };
2826
+
2827
+ if (includeInstance) {
2828
+ obj.$jspbMessageInstance = msg;
2829
+ }
2830
+ return obj;
2831
+ };
2832
+ }
2833
+
2834
+
2835
+ /**
2836
+ * Deserializes binary data (in protobuf wire format).
2837
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2838
+ * @return {!proto.Spic.ConfigTemplateProto.SearchRequest}
2839
+ */
2840
+ proto.Spic.ConfigTemplateProto.SearchRequest.deserializeBinary = function(bytes) {
2841
+ var reader = new jspb.BinaryReader(bytes);
2842
+ var msg = new proto.Spic.ConfigTemplateProto.SearchRequest;
2843
+ return proto.Spic.ConfigTemplateProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
2844
+ };
2845
+
2846
+
2847
+ /**
2848
+ * Deserializes binary data (in protobuf wire format) from the
2849
+ * given reader into the given message object.
2850
+ * @param {!proto.Spic.ConfigTemplateProto.SearchRequest} msg The message object to deserialize into.
2851
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2852
+ * @return {!proto.Spic.ConfigTemplateProto.SearchRequest}
2853
+ */
2854
+ proto.Spic.ConfigTemplateProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2855
+ while (reader.nextField()) {
2856
+ if (reader.isEndGroup()) {
2857
+ break;
2858
+ }
2859
+ var field = reader.getFieldNumber();
2860
+ switch (field) {
2861
+ case 1:
2862
+ var value = /** @type {number} */ (reader.readInt32());
2863
+ msg.setPage(value);
2864
+ break;
2865
+ case 2:
2866
+ var value = /** @type {number} */ (reader.readInt32());
2867
+ msg.setCount(value);
2868
+ break;
2869
+ default:
2870
+ reader.skipField();
2871
+ break;
2872
+ }
2873
+ }
2874
+ return msg;
2875
+ };
2876
+
2877
+
2878
+ /**
2879
+ * Serializes the message to binary data (in protobuf wire format).
2880
+ * @return {!Uint8Array}
2881
+ */
2882
+ proto.Spic.ConfigTemplateProto.SearchRequest.prototype.serializeBinary = function() {
2883
+ var writer = new jspb.BinaryWriter();
2884
+ proto.Spic.ConfigTemplateProto.SearchRequest.serializeBinaryToWriter(this, writer);
2885
+ return writer.getResultBuffer();
2886
+ };
2887
+
2888
+
2889
+ /**
2890
+ * Serializes the given message to binary data (in protobuf wire
2891
+ * format), writing to the given BinaryWriter.
2892
+ * @param {!proto.Spic.ConfigTemplateProto.SearchRequest} message
2893
+ * @param {!jspb.BinaryWriter} writer
2894
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2895
+ */
2896
+ proto.Spic.ConfigTemplateProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
2897
+ var f = undefined;
2898
+ f = message.getPage();
2899
+ if (f !== 0) {
2900
+ writer.writeInt32(
2901
+ 1,
2902
+ f
2903
+ );
2904
+ }
2905
+ f = message.getCount();
2906
+ if (f !== 0) {
2907
+ writer.writeInt32(
2908
+ 2,
2909
+ f
2910
+ );
2911
+ }
2912
+ };
2913
+
2914
+
2915
+ /**
2916
+ * optional int32 page = 1;
2917
+ * @return {number}
2918
+ */
2919
+ proto.Spic.ConfigTemplateProto.SearchRequest.prototype.getPage = function() {
2920
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * @param {number} value
2926
+ * @return {!proto.Spic.ConfigTemplateProto.SearchRequest} returns this
2927
+ */
2928
+ proto.Spic.ConfigTemplateProto.SearchRequest.prototype.setPage = function(value) {
2929
+ return jspb.Message.setProto3IntField(this, 1, value);
2930
+ };
2931
+
2932
+
2933
+ /**
2934
+ * optional int32 count = 2;
2935
+ * @return {number}
2936
+ */
2937
+ proto.Spic.ConfigTemplateProto.SearchRequest.prototype.getCount = function() {
2938
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * @param {number} value
2944
+ * @return {!proto.Spic.ConfigTemplateProto.SearchRequest} returns this
2945
+ */
2946
+ proto.Spic.ConfigTemplateProto.SearchRequest.prototype.setCount = function(value) {
2947
+ return jspb.Message.setProto3IntField(this, 2, value);
2948
+ };
2949
+
2950
+
2951
+
2952
+ /**
2953
+ * List of repeated fields within this message type.
2954
+ * @private {!Array<number>}
2955
+ * @const
2956
+ */
2957
+ proto.Spic.ConfigTemplateProto.SearchReply.repeatedFields_ = [1];
2958
+
2959
+
2960
+
2961
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2962
+ /**
2963
+ * Creates an object representation of this proto.
2964
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2965
+ * Optional fields that are not set will be set to undefined.
2966
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2967
+ * For the list of reserved names please see:
2968
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2969
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2970
+ * JSPB instance for transitional soy proto support:
2971
+ * http://goto/soy-param-migration
2972
+ * @return {!Object}
2973
+ */
2974
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
2975
+ return proto.Spic.ConfigTemplateProto.SearchReply.toObject(opt_includeInstance, this);
2976
+ };
2977
+
2978
+
2979
+ /**
2980
+ * Static version of the {@see toObject} method.
2981
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2982
+ * the JSPB instance for transitional soy proto support:
2983
+ * http://goto/soy-param-migration
2984
+ * @param {!proto.Spic.ConfigTemplateProto.SearchReply} msg The msg instance to transform.
2985
+ * @return {!Object}
2986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2987
+ */
2988
+ proto.Spic.ConfigTemplateProto.SearchReply.toObject = function(includeInstance, msg) {
2989
+ var f, obj = {
2990
+ templatesList: jspb.Message.toObjectList(msg.getTemplatesList(),
2991
+ proto.Spic.ConfigTemplateProto.toObject, includeInstance),
2992
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
2993
+ };
2994
+
2995
+ if (includeInstance) {
2996
+ obj.$jspbMessageInstance = msg;
2997
+ }
2998
+ return obj;
2999
+ };
3000
+ }
3001
+
3002
+
3003
+ /**
3004
+ * Deserializes binary data (in protobuf wire format).
3005
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3006
+ * @return {!proto.Spic.ConfigTemplateProto.SearchReply}
3007
+ */
3008
+ proto.Spic.ConfigTemplateProto.SearchReply.deserializeBinary = function(bytes) {
3009
+ var reader = new jspb.BinaryReader(bytes);
3010
+ var msg = new proto.Spic.ConfigTemplateProto.SearchReply;
3011
+ return proto.Spic.ConfigTemplateProto.SearchReply.deserializeBinaryFromReader(msg, reader);
3012
+ };
3013
+
3014
+
3015
+ /**
3016
+ * Deserializes binary data (in protobuf wire format) from the
3017
+ * given reader into the given message object.
3018
+ * @param {!proto.Spic.ConfigTemplateProto.SearchReply} msg The message object to deserialize into.
3019
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3020
+ * @return {!proto.Spic.ConfigTemplateProto.SearchReply}
3021
+ */
3022
+ proto.Spic.ConfigTemplateProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
3023
+ while (reader.nextField()) {
3024
+ if (reader.isEndGroup()) {
3025
+ break;
3026
+ }
3027
+ var field = reader.getFieldNumber();
3028
+ switch (field) {
3029
+ case 1:
3030
+ var value = new proto.Spic.ConfigTemplateProto;
3031
+ reader.readMessage(value,proto.Spic.ConfigTemplateProto.deserializeBinaryFromReader);
3032
+ msg.addTemplates(value);
3033
+ break;
3034
+ case 2:
3035
+ var value = new platform_pagination_pb.PaginationProto;
3036
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
3037
+ msg.setPagination(value);
3038
+ break;
3039
+ default:
3040
+ reader.skipField();
3041
+ break;
3042
+ }
3043
+ }
3044
+ return msg;
3045
+ };
3046
+
3047
+
3048
+ /**
3049
+ * Serializes the message to binary data (in protobuf wire format).
3050
+ * @return {!Uint8Array}
3051
+ */
3052
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.serializeBinary = function() {
3053
+ var writer = new jspb.BinaryWriter();
3054
+ proto.Spic.ConfigTemplateProto.SearchReply.serializeBinaryToWriter(this, writer);
3055
+ return writer.getResultBuffer();
3056
+ };
3057
+
3058
+
3059
+ /**
3060
+ * Serializes the given message to binary data (in protobuf wire
3061
+ * format), writing to the given BinaryWriter.
3062
+ * @param {!proto.Spic.ConfigTemplateProto.SearchReply} message
3063
+ * @param {!jspb.BinaryWriter} writer
3064
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3065
+ */
3066
+ proto.Spic.ConfigTemplateProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
3067
+ var f = undefined;
3068
+ f = message.getTemplatesList();
3069
+ if (f.length > 0) {
3070
+ writer.writeRepeatedMessage(
3071
+ 1,
3072
+ f,
3073
+ proto.Spic.ConfigTemplateProto.serializeBinaryToWriter
3074
+ );
3075
+ }
3076
+ f = message.getPagination();
3077
+ if (f != null) {
3078
+ writer.writeMessage(
3079
+ 2,
3080
+ f,
3081
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
3082
+ );
3083
+ }
3084
+ };
3085
+
3086
+
3087
+ /**
3088
+ * repeated ConfigTemplateProto templates = 1;
3089
+ * @return {!Array<!proto.Spic.ConfigTemplateProto>}
3090
+ */
3091
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.getTemplatesList = function() {
3092
+ return /** @type{!Array<!proto.Spic.ConfigTemplateProto>} */ (
3093
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.ConfigTemplateProto, 1));
3094
+ };
3095
+
3096
+
3097
+ /**
3098
+ * @param {!Array<!proto.Spic.ConfigTemplateProto>} value
3099
+ * @return {!proto.Spic.ConfigTemplateProto.SearchReply} returns this
3100
+ */
3101
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.setTemplatesList = function(value) {
3102
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3103
+ };
3104
+
3105
+
3106
+ /**
3107
+ * @param {!proto.Spic.ConfigTemplateProto=} opt_value
3108
+ * @param {number=} opt_index
3109
+ * @return {!proto.Spic.ConfigTemplateProto}
3110
+ */
3111
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.addTemplates = function(opt_value, opt_index) {
3112
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.ConfigTemplateProto, opt_index);
3113
+ };
3114
+
3115
+
3116
+ /**
3117
+ * Clears the list making it empty but non-null.
3118
+ * @return {!proto.Spic.ConfigTemplateProto.SearchReply} returns this
3119
+ */
3120
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.clearTemplatesList = function() {
3121
+ return this.setTemplatesList([]);
3122
+ };
3123
+
3124
+
3125
+ /**
3126
+ * optional Platform.PaginationProto pagination = 2;
3127
+ * @return {?proto.Platform.PaginationProto}
3128
+ */
3129
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.getPagination = function() {
3130
+ return /** @type{?proto.Platform.PaginationProto} */ (
3131
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
3132
+ };
3133
+
3134
+
3135
+ /**
3136
+ * @param {?proto.Platform.PaginationProto|undefined} value
3137
+ * @return {!proto.Spic.ConfigTemplateProto.SearchReply} returns this
3138
+ */
3139
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.setPagination = function(value) {
3140
+ return jspb.Message.setWrapperField(this, 2, value);
3141
+ };
3142
+
3143
+
3144
+ /**
3145
+ * Clears the message field making it undefined.
3146
+ * @return {!proto.Spic.ConfigTemplateProto.SearchReply} returns this
3147
+ */
3148
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.clearPagination = function() {
3149
+ return this.setPagination(undefined);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Returns whether this field is set.
3155
+ * @return {boolean}
3156
+ */
3157
+ proto.Spic.ConfigTemplateProto.SearchReply.prototype.hasPagination = function() {
3158
+ return jspb.Message.getField(this, 2) != null;
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * optional int32 id = 1;
3164
+ * @return {number}
3165
+ */
3166
+ proto.Spic.ConfigTemplateProto.prototype.getId = function() {
3167
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * @param {number} value
3173
+ * @return {!proto.Spic.ConfigTemplateProto} returns this
3174
+ */
3175
+ proto.Spic.ConfigTemplateProto.prototype.setId = function(value) {
3176
+ return jspb.Message.setProto3IntField(this, 1, value);
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * optional string name = 2;
3182
+ * @return {string}
3183
+ */
3184
+ proto.Spic.ConfigTemplateProto.prototype.getName = function() {
3185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3186
+ };
3187
+
3188
+
3189
+ /**
3190
+ * @param {string} value
3191
+ * @return {!proto.Spic.ConfigTemplateProto} returns this
3192
+ */
3193
+ proto.Spic.ConfigTemplateProto.prototype.setName = function(value) {
3194
+ return jspb.Message.setProto3StringField(this, 2, value);
3195
+ };
3196
+
3197
+
3198
+ /**
3199
+ * optional string config = 3;
3200
+ * @return {string}
3201
+ */
3202
+ proto.Spic.ConfigTemplateProto.prototype.getConfig = function() {
3203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3204
+ };
3205
+
3206
+
3207
+ /**
3208
+ * @param {string} value
3209
+ * @return {!proto.Spic.ConfigTemplateProto} returns this
3210
+ */
3211
+ proto.Spic.ConfigTemplateProto.prototype.setConfig = function(value) {
3212
+ return jspb.Message.setProto3StringField(this, 3, value);
3213
+ };
3214
+
3215
+
1891
3216
  goog.object.extend(exports, proto.Spic);