clarifai-web-grpc 11.6.6 → 11.7.0
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/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +2364 -255
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +168 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1218 -29
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +2364 -255
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +168 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1218 -29
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +349 -13
- package/proto/clarifai/api/resources_pb.js +2981 -394
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +48 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +244 -0
- package/proto/clarifai/api/service_pb.d.ts +180 -8
- package/proto/clarifai/api/service_pb.js +1781 -301
- package/proto/clarifai/api/status/status_code_pb.d.ts +8 -0
- package/proto/clarifai/api/status/status_code_pb.js +8 -0
|
@@ -46,6 +46,7 @@ goog.exportSymbol('proto.clarifai.api.ConceptExtraInfoRequest', null, global);
|
|
|
46
46
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationFiltersRequest', null, global);
|
|
47
47
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global);
|
|
48
48
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationSearchMetricsRequest', null, global);
|
|
49
|
+
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationTracksRequest', null, global);
|
|
49
50
|
goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global);
|
|
50
51
|
goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global);
|
|
51
52
|
goog.exportSymbol('proto.clarifai.api.DeleteBulkOperationRequest', null, global);
|
|
@@ -137,6 +138,7 @@ goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global);
|
|
|
137
138
|
goog.exportSymbol('proto.clarifai.api.LabelSubmitConfig', null, global);
|
|
138
139
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global);
|
|
139
140
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global);
|
|
141
|
+
goog.exportSymbol('proto.clarifai.api.ListAnnotationTracksRequest', null, global);
|
|
140
142
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationWorkersRequest', null, global);
|
|
141
143
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationsRequest', null, global);
|
|
142
144
|
goog.exportSymbol('proto.clarifai.api.ListAppDuplicationsRequest', null, global);
|
|
@@ -211,6 +213,7 @@ goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, globa
|
|
|
211
213
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
|
|
212
214
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
|
|
213
215
|
goog.exportSymbol('proto.clarifai.api.MultiAnnotationSearchMetricsResponse', null, global);
|
|
216
|
+
goog.exportSymbol('proto.clarifai.api.MultiAnnotationTrackResponse', null, global);
|
|
214
217
|
goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
|
|
215
218
|
goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
|
|
216
219
|
goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
|
|
@@ -288,6 +291,7 @@ goog.exportSymbol('proto.clarifai.api.MyScopesUserRequest', null, global);
|
|
|
288
291
|
goog.exportSymbol('proto.clarifai.api.OrganizationInvitationStatus', null, global);
|
|
289
292
|
goog.exportSymbol('proto.clarifai.api.Pagination', null, global);
|
|
290
293
|
goog.exportSymbol('proto.clarifai.api.PatchAnnotationFiltersRequest', null, global);
|
|
294
|
+
goog.exportSymbol('proto.clarifai.api.PatchAnnotationTracksRequest', null, global);
|
|
291
295
|
goog.exportSymbol('proto.clarifai.api.PatchAnnotationsRequest', null, global);
|
|
292
296
|
goog.exportSymbol('proto.clarifai.api.PatchAnnotationsSearchesRequest', null, global);
|
|
293
297
|
goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusRequest', null, global);
|
|
@@ -330,6 +334,7 @@ goog.exportSymbol('proto.clarifai.api.PatchWorkflowVersionsRequest', null, globa
|
|
|
330
334
|
goog.exportSymbol('proto.clarifai.api.PatchWorkflowsRequest', null, global);
|
|
331
335
|
goog.exportSymbol('proto.clarifai.api.PostAnnotationFiltersRequest', null, global);
|
|
332
336
|
goog.exportSymbol('proto.clarifai.api.PostAnnotationSearchMetricsRequest', null, global);
|
|
337
|
+
goog.exportSymbol('proto.clarifai.api.PostAnnotationTracksRequest', null, global);
|
|
333
338
|
goog.exportSymbol('proto.clarifai.api.PostAnnotationsRequest', null, global);
|
|
334
339
|
goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, global);
|
|
335
340
|
goog.exportSymbol('proto.clarifai.api.PostAppDuplicationsRequest', null, global);
|
|
@@ -656,6 +661,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
656
661
|
*/
|
|
657
662
|
proto.clarifai.api.DeleteAnnotationsRequest.displayName = 'proto.clarifai.api.DeleteAnnotationsRequest';
|
|
658
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* Generated by JsPbCodeGenerator.
|
|
666
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
667
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
668
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
669
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
670
|
+
* valid.
|
|
671
|
+
* @extends {jspb.Message}
|
|
672
|
+
* @constructor
|
|
673
|
+
*/
|
|
674
|
+
proto.clarifai.api.ListAnnotationTracksRequest = function (opt_data) {
|
|
675
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListAnnotationTracksRequest.repeatedFields_, null);
|
|
676
|
+
};
|
|
677
|
+
goog.inherits(proto.clarifai.api.ListAnnotationTracksRequest, jspb.Message);
|
|
678
|
+
if (goog.DEBUG && !COMPILED) {
|
|
679
|
+
/**
|
|
680
|
+
* @public
|
|
681
|
+
* @override
|
|
682
|
+
*/
|
|
683
|
+
proto.clarifai.api.ListAnnotationTracksRequest.displayName = 'proto.clarifai.api.ListAnnotationTracksRequest';
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Generated by JsPbCodeGenerator.
|
|
687
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
688
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
689
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
690
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
691
|
+
* valid.
|
|
692
|
+
* @extends {jspb.Message}
|
|
693
|
+
* @constructor
|
|
694
|
+
*/
|
|
695
|
+
proto.clarifai.api.PostAnnotationTracksRequest = function (opt_data) {
|
|
696
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAnnotationTracksRequest.repeatedFields_, null);
|
|
697
|
+
};
|
|
698
|
+
goog.inherits(proto.clarifai.api.PostAnnotationTracksRequest, jspb.Message);
|
|
699
|
+
if (goog.DEBUG && !COMPILED) {
|
|
700
|
+
/**
|
|
701
|
+
* @public
|
|
702
|
+
* @override
|
|
703
|
+
*/
|
|
704
|
+
proto.clarifai.api.PostAnnotationTracksRequest.displayName = 'proto.clarifai.api.PostAnnotationTracksRequest';
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Generated by JsPbCodeGenerator.
|
|
708
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
709
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
710
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
711
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
712
|
+
* valid.
|
|
713
|
+
* @extends {jspb.Message}
|
|
714
|
+
* @constructor
|
|
715
|
+
*/
|
|
716
|
+
proto.clarifai.api.PatchAnnotationTracksRequest = function (opt_data) {
|
|
717
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_, null);
|
|
718
|
+
};
|
|
719
|
+
goog.inherits(proto.clarifai.api.PatchAnnotationTracksRequest, jspb.Message);
|
|
720
|
+
if (goog.DEBUG && !COMPILED) {
|
|
721
|
+
/**
|
|
722
|
+
* @public
|
|
723
|
+
* @override
|
|
724
|
+
*/
|
|
725
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.displayName = 'proto.clarifai.api.PatchAnnotationTracksRequest';
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Generated by JsPbCodeGenerator.
|
|
729
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
730
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
731
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
732
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
733
|
+
* valid.
|
|
734
|
+
* @extends {jspb.Message}
|
|
735
|
+
* @constructor
|
|
736
|
+
*/
|
|
737
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest = function (opt_data) {
|
|
738
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteAnnotationTracksRequest.repeatedFields_, null);
|
|
739
|
+
};
|
|
740
|
+
goog.inherits(proto.clarifai.api.DeleteAnnotationTracksRequest, jspb.Message);
|
|
741
|
+
if (goog.DEBUG && !COMPILED) {
|
|
742
|
+
/**
|
|
743
|
+
* @public
|
|
744
|
+
* @override
|
|
745
|
+
*/
|
|
746
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.displayName = 'proto.clarifai.api.DeleteAnnotationTracksRequest';
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Generated by JsPbCodeGenerator.
|
|
750
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
751
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
752
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
753
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
754
|
+
* valid.
|
|
755
|
+
* @extends {jspb.Message}
|
|
756
|
+
* @constructor
|
|
757
|
+
*/
|
|
758
|
+
proto.clarifai.api.MultiAnnotationTrackResponse = function (opt_data) {
|
|
759
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationTrackResponse.repeatedFields_, null);
|
|
760
|
+
};
|
|
761
|
+
goog.inherits(proto.clarifai.api.MultiAnnotationTrackResponse, jspb.Message);
|
|
762
|
+
if (goog.DEBUG && !COMPILED) {
|
|
763
|
+
/**
|
|
764
|
+
* @public
|
|
765
|
+
* @override
|
|
766
|
+
*/
|
|
767
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.displayName = 'proto.clarifai.api.MultiAnnotationTrackResponse';
|
|
768
|
+
}
|
|
659
769
|
/**
|
|
660
770
|
* Generated by JsPbCodeGenerator.
|
|
661
771
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -11147,6 +11257,1000 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function (va
|
|
|
11147
11257
|
proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function () {
|
|
11148
11258
|
return this.setInputIdsList([]);
|
|
11149
11259
|
};
|
|
11260
|
+
/**
|
|
11261
|
+
* List of repeated fields within this message type.
|
|
11262
|
+
* @private {!Array<number>}
|
|
11263
|
+
* @const
|
|
11264
|
+
*/
|
|
11265
|
+
proto.clarifai.api.ListAnnotationTracksRequest.repeatedFields_ = [2];
|
|
11266
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11267
|
+
/**
|
|
11268
|
+
* Creates an object representation of this proto.
|
|
11269
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11270
|
+
* Optional fields that are not set will be set to undefined.
|
|
11271
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11272
|
+
* For the list of reserved names please see:
|
|
11273
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11274
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11275
|
+
* JSPB instance for transitional soy proto support:
|
|
11276
|
+
* http://goto/soy-param-migration
|
|
11277
|
+
* @return {!Object}
|
|
11278
|
+
*/
|
|
11279
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
|
|
11280
|
+
return proto.clarifai.api.ListAnnotationTracksRequest.toObject(opt_includeInstance, this);
|
|
11281
|
+
};
|
|
11282
|
+
/**
|
|
11283
|
+
* Static version of the {@see toObject} method.
|
|
11284
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11285
|
+
* the JSPB instance for transitional soy proto support:
|
|
11286
|
+
* http://goto/soy-param-migration
|
|
11287
|
+
* @param {!proto.clarifai.api.ListAnnotationTracksRequest} msg The msg instance to transform.
|
|
11288
|
+
* @return {!Object}
|
|
11289
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11290
|
+
*/
|
|
11291
|
+
proto.clarifai.api.ListAnnotationTracksRequest.toObject = function (includeInstance, msg) {
|
|
11292
|
+
var f, obj = {
|
|
11293
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11294
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
11295
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11296
|
+
page: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
11297
|
+
perPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
11298
|
+
};
|
|
11299
|
+
if (includeInstance) {
|
|
11300
|
+
obj.$jspbMessageInstance = msg;
|
|
11301
|
+
}
|
|
11302
|
+
return obj;
|
|
11303
|
+
};
|
|
11304
|
+
}
|
|
11305
|
+
/**
|
|
11306
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11307
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11308
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest}
|
|
11309
|
+
*/
|
|
11310
|
+
proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinary = function (bytes) {
|
|
11311
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11312
|
+
var msg = new proto.clarifai.api.ListAnnotationTracksRequest;
|
|
11313
|
+
return proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
|
|
11314
|
+
};
|
|
11315
|
+
/**
|
|
11316
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11317
|
+
* given reader into the given message object.
|
|
11318
|
+
* @param {!proto.clarifai.api.ListAnnotationTracksRequest} msg The message object to deserialize into.
|
|
11319
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11320
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest}
|
|
11321
|
+
*/
|
|
11322
|
+
proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
11323
|
+
while (reader.nextField()) {
|
|
11324
|
+
if (reader.isEndGroup()) {
|
|
11325
|
+
break;
|
|
11326
|
+
}
|
|
11327
|
+
var field = reader.getFieldNumber();
|
|
11328
|
+
switch (field) {
|
|
11329
|
+
case 1:
|
|
11330
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
11331
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
11332
|
+
msg.setUserAppId(value);
|
|
11333
|
+
break;
|
|
11334
|
+
case 2:
|
|
11335
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11336
|
+
msg.addIds(value);
|
|
11337
|
+
break;
|
|
11338
|
+
case 3:
|
|
11339
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11340
|
+
msg.setInputId(value);
|
|
11341
|
+
break;
|
|
11342
|
+
case 4:
|
|
11343
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11344
|
+
msg.setPage(value);
|
|
11345
|
+
break;
|
|
11346
|
+
case 5:
|
|
11347
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
11348
|
+
msg.setPerPage(value);
|
|
11349
|
+
break;
|
|
11350
|
+
default:
|
|
11351
|
+
reader.skipField();
|
|
11352
|
+
break;
|
|
11353
|
+
}
|
|
11354
|
+
}
|
|
11355
|
+
return msg;
|
|
11356
|
+
};
|
|
11357
|
+
/**
|
|
11358
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11359
|
+
* @return {!Uint8Array}
|
|
11360
|
+
*/
|
|
11361
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.serializeBinary = function () {
|
|
11362
|
+
var writer = new jspb.BinaryWriter();
|
|
11363
|
+
proto.clarifai.api.ListAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
|
|
11364
|
+
return writer.getResultBuffer();
|
|
11365
|
+
};
|
|
11366
|
+
/**
|
|
11367
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11368
|
+
* format), writing to the given BinaryWriter.
|
|
11369
|
+
* @param {!proto.clarifai.api.ListAnnotationTracksRequest} message
|
|
11370
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11371
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11372
|
+
*/
|
|
11373
|
+
proto.clarifai.api.ListAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
|
|
11374
|
+
var f = undefined;
|
|
11375
|
+
f = message.getUserAppId();
|
|
11376
|
+
if (f != null) {
|
|
11377
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
11378
|
+
}
|
|
11379
|
+
f = message.getIdsList();
|
|
11380
|
+
if (f.length > 0) {
|
|
11381
|
+
writer.writeRepeatedString(2, f);
|
|
11382
|
+
}
|
|
11383
|
+
f = message.getInputId();
|
|
11384
|
+
if (f.length > 0) {
|
|
11385
|
+
writer.writeString(3, f);
|
|
11386
|
+
}
|
|
11387
|
+
f = message.getPage();
|
|
11388
|
+
if (f !== 0) {
|
|
11389
|
+
writer.writeUint32(4, f);
|
|
11390
|
+
}
|
|
11391
|
+
f = message.getPerPage();
|
|
11392
|
+
if (f !== 0) {
|
|
11393
|
+
writer.writeUint32(5, f);
|
|
11394
|
+
}
|
|
11395
|
+
};
|
|
11396
|
+
/**
|
|
11397
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
11398
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
11399
|
+
*/
|
|
11400
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.getUserAppId = function () {
|
|
11401
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
11402
|
+
};
|
|
11403
|
+
/**
|
|
11404
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
11405
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11406
|
+
*/
|
|
11407
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.setUserAppId = function (value) {
|
|
11408
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
11409
|
+
};
|
|
11410
|
+
/**
|
|
11411
|
+
* Clears the message field making it undefined.
|
|
11412
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11413
|
+
*/
|
|
11414
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.clearUserAppId = function () {
|
|
11415
|
+
return this.setUserAppId(undefined);
|
|
11416
|
+
};
|
|
11417
|
+
/**
|
|
11418
|
+
* Returns whether this field is set.
|
|
11419
|
+
* @return {boolean}
|
|
11420
|
+
*/
|
|
11421
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.hasUserAppId = function () {
|
|
11422
|
+
return jspb.Message.getField(this, 1) != null;
|
|
11423
|
+
};
|
|
11424
|
+
/**
|
|
11425
|
+
* repeated string ids = 2;
|
|
11426
|
+
* @return {!Array<string>}
|
|
11427
|
+
*/
|
|
11428
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.getIdsList = function () {
|
|
11429
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
11430
|
+
};
|
|
11431
|
+
/**
|
|
11432
|
+
* @param {!Array<string>} value
|
|
11433
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11434
|
+
*/
|
|
11435
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.setIdsList = function (value) {
|
|
11436
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
11437
|
+
};
|
|
11438
|
+
/**
|
|
11439
|
+
* @param {string} value
|
|
11440
|
+
* @param {number=} opt_index
|
|
11441
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11442
|
+
*/
|
|
11443
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.addIds = function (value, opt_index) {
|
|
11444
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
11445
|
+
};
|
|
11446
|
+
/**
|
|
11447
|
+
* Clears the list making it empty but non-null.
|
|
11448
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11449
|
+
*/
|
|
11450
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.clearIdsList = function () {
|
|
11451
|
+
return this.setIdsList([]);
|
|
11452
|
+
};
|
|
11453
|
+
/**
|
|
11454
|
+
* optional string input_id = 3;
|
|
11455
|
+
* @return {string}
|
|
11456
|
+
*/
|
|
11457
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.getInputId = function () {
|
|
11458
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11459
|
+
};
|
|
11460
|
+
/**
|
|
11461
|
+
* @param {string} value
|
|
11462
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11463
|
+
*/
|
|
11464
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.setInputId = function (value) {
|
|
11465
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11466
|
+
};
|
|
11467
|
+
/**
|
|
11468
|
+
* optional uint32 page = 4;
|
|
11469
|
+
* @return {number}
|
|
11470
|
+
*/
|
|
11471
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.getPage = function () {
|
|
11472
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
11473
|
+
};
|
|
11474
|
+
/**
|
|
11475
|
+
* @param {number} value
|
|
11476
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11477
|
+
*/
|
|
11478
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.setPage = function (value) {
|
|
11479
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
11480
|
+
};
|
|
11481
|
+
/**
|
|
11482
|
+
* optional uint32 per_page = 5;
|
|
11483
|
+
* @return {number}
|
|
11484
|
+
*/
|
|
11485
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.getPerPage = function () {
|
|
11486
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
11487
|
+
};
|
|
11488
|
+
/**
|
|
11489
|
+
* @param {number} value
|
|
11490
|
+
* @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
|
|
11491
|
+
*/
|
|
11492
|
+
proto.clarifai.api.ListAnnotationTracksRequest.prototype.setPerPage = function (value) {
|
|
11493
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
11494
|
+
};
|
|
11495
|
+
/**
|
|
11496
|
+
* List of repeated fields within this message type.
|
|
11497
|
+
* @private {!Array<number>}
|
|
11498
|
+
* @const
|
|
11499
|
+
*/
|
|
11500
|
+
proto.clarifai.api.PostAnnotationTracksRequest.repeatedFields_ = [2];
|
|
11501
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11502
|
+
/**
|
|
11503
|
+
* Creates an object representation of this proto.
|
|
11504
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11505
|
+
* Optional fields that are not set will be set to undefined.
|
|
11506
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11507
|
+
* For the list of reserved names please see:
|
|
11508
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11509
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11510
|
+
* JSPB instance for transitional soy proto support:
|
|
11511
|
+
* http://goto/soy-param-migration
|
|
11512
|
+
* @return {!Object}
|
|
11513
|
+
*/
|
|
11514
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
|
|
11515
|
+
return proto.clarifai.api.PostAnnotationTracksRequest.toObject(opt_includeInstance, this);
|
|
11516
|
+
};
|
|
11517
|
+
/**
|
|
11518
|
+
* Static version of the {@see toObject} method.
|
|
11519
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11520
|
+
* the JSPB instance for transitional soy proto support:
|
|
11521
|
+
* http://goto/soy-param-migration
|
|
11522
|
+
* @param {!proto.clarifai.api.PostAnnotationTracksRequest} msg The msg instance to transform.
|
|
11523
|
+
* @return {!Object}
|
|
11524
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11525
|
+
*/
|
|
11526
|
+
proto.clarifai.api.PostAnnotationTracksRequest.toObject = function (includeInstance, msg) {
|
|
11527
|
+
var f, obj = {
|
|
11528
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11529
|
+
annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(), proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance),
|
|
11530
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
11531
|
+
};
|
|
11532
|
+
if (includeInstance) {
|
|
11533
|
+
obj.$jspbMessageInstance = msg;
|
|
11534
|
+
}
|
|
11535
|
+
return obj;
|
|
11536
|
+
};
|
|
11537
|
+
}
|
|
11538
|
+
/**
|
|
11539
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11540
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11541
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest}
|
|
11542
|
+
*/
|
|
11543
|
+
proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinary = function (bytes) {
|
|
11544
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11545
|
+
var msg = new proto.clarifai.api.PostAnnotationTracksRequest;
|
|
11546
|
+
return proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
|
|
11547
|
+
};
|
|
11548
|
+
/**
|
|
11549
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11550
|
+
* given reader into the given message object.
|
|
11551
|
+
* @param {!proto.clarifai.api.PostAnnotationTracksRequest} msg The message object to deserialize into.
|
|
11552
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11553
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest}
|
|
11554
|
+
*/
|
|
11555
|
+
proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
11556
|
+
while (reader.nextField()) {
|
|
11557
|
+
if (reader.isEndGroup()) {
|
|
11558
|
+
break;
|
|
11559
|
+
}
|
|
11560
|
+
var field = reader.getFieldNumber();
|
|
11561
|
+
switch (field) {
|
|
11562
|
+
case 1:
|
|
11563
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
11564
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
11565
|
+
msg.setUserAppId(value);
|
|
11566
|
+
break;
|
|
11567
|
+
case 2:
|
|
11568
|
+
var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
|
|
11569
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
|
|
11570
|
+
msg.addAnnotationTracks(value);
|
|
11571
|
+
break;
|
|
11572
|
+
case 3:
|
|
11573
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11574
|
+
msg.setInputId(value);
|
|
11575
|
+
break;
|
|
11576
|
+
default:
|
|
11577
|
+
reader.skipField();
|
|
11578
|
+
break;
|
|
11579
|
+
}
|
|
11580
|
+
}
|
|
11581
|
+
return msg;
|
|
11582
|
+
};
|
|
11583
|
+
/**
|
|
11584
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11585
|
+
* @return {!Uint8Array}
|
|
11586
|
+
*/
|
|
11587
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.serializeBinary = function () {
|
|
11588
|
+
var writer = new jspb.BinaryWriter();
|
|
11589
|
+
proto.clarifai.api.PostAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
|
|
11590
|
+
return writer.getResultBuffer();
|
|
11591
|
+
};
|
|
11592
|
+
/**
|
|
11593
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11594
|
+
* format), writing to the given BinaryWriter.
|
|
11595
|
+
* @param {!proto.clarifai.api.PostAnnotationTracksRequest} message
|
|
11596
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11597
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11598
|
+
*/
|
|
11599
|
+
proto.clarifai.api.PostAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
|
|
11600
|
+
var f = undefined;
|
|
11601
|
+
f = message.getUserAppId();
|
|
11602
|
+
if (f != null) {
|
|
11603
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
11604
|
+
}
|
|
11605
|
+
f = message.getAnnotationTracksList();
|
|
11606
|
+
if (f.length > 0) {
|
|
11607
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter);
|
|
11608
|
+
}
|
|
11609
|
+
f = message.getInputId();
|
|
11610
|
+
if (f.length > 0) {
|
|
11611
|
+
writer.writeString(3, f);
|
|
11612
|
+
}
|
|
11613
|
+
};
|
|
11614
|
+
/**
|
|
11615
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
11616
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
11617
|
+
*/
|
|
11618
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.getUserAppId = function () {
|
|
11619
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
11620
|
+
};
|
|
11621
|
+
/**
|
|
11622
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
11623
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
|
|
11624
|
+
*/
|
|
11625
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.setUserAppId = function (value) {
|
|
11626
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
11627
|
+
};
|
|
11628
|
+
/**
|
|
11629
|
+
* Clears the message field making it undefined.
|
|
11630
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
|
|
11631
|
+
*/
|
|
11632
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearUserAppId = function () {
|
|
11633
|
+
return this.setUserAppId(undefined);
|
|
11634
|
+
};
|
|
11635
|
+
/**
|
|
11636
|
+
* Returns whether this field is set.
|
|
11637
|
+
* @return {boolean}
|
|
11638
|
+
*/
|
|
11639
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.hasUserAppId = function () {
|
|
11640
|
+
return jspb.Message.getField(this, 1) != null;
|
|
11641
|
+
};
|
|
11642
|
+
/**
|
|
11643
|
+
* repeated AnnotationTrack annotation_tracks = 2;
|
|
11644
|
+
* @return {!Array<!proto.clarifai.api.AnnotationTrack>}
|
|
11645
|
+
*/
|
|
11646
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.getAnnotationTracksList = function () {
|
|
11647
|
+
return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
|
|
11648
|
+
};
|
|
11649
|
+
/**
|
|
11650
|
+
* @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
|
|
11651
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
|
|
11652
|
+
*/
|
|
11653
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.setAnnotationTracksList = function (value) {
|
|
11654
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
11655
|
+
};
|
|
11656
|
+
/**
|
|
11657
|
+
* @param {!proto.clarifai.api.AnnotationTrack=} opt_value
|
|
11658
|
+
* @param {number=} opt_index
|
|
11659
|
+
* @return {!proto.clarifai.api.AnnotationTrack}
|
|
11660
|
+
*/
|
|
11661
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.addAnnotationTracks = function (opt_value, opt_index) {
|
|
11662
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
|
|
11663
|
+
};
|
|
11664
|
+
/**
|
|
11665
|
+
* Clears the list making it empty but non-null.
|
|
11666
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
|
|
11667
|
+
*/
|
|
11668
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearAnnotationTracksList = function () {
|
|
11669
|
+
return this.setAnnotationTracksList([]);
|
|
11670
|
+
};
|
|
11671
|
+
/**
|
|
11672
|
+
* optional string input_id = 3;
|
|
11673
|
+
* @return {string}
|
|
11674
|
+
*/
|
|
11675
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.getInputId = function () {
|
|
11676
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11677
|
+
};
|
|
11678
|
+
/**
|
|
11679
|
+
* @param {string} value
|
|
11680
|
+
* @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
|
|
11681
|
+
*/
|
|
11682
|
+
proto.clarifai.api.PostAnnotationTracksRequest.prototype.setInputId = function (value) {
|
|
11683
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11684
|
+
};
|
|
11685
|
+
/**
|
|
11686
|
+
* List of repeated fields within this message type.
|
|
11687
|
+
* @private {!Array<number>}
|
|
11688
|
+
* @const
|
|
11689
|
+
*/
|
|
11690
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_ = [2];
|
|
11691
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11692
|
+
/**
|
|
11693
|
+
* Creates an object representation of this proto.
|
|
11694
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11695
|
+
* Optional fields that are not set will be set to undefined.
|
|
11696
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11697
|
+
* For the list of reserved names please see:
|
|
11698
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11699
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11700
|
+
* JSPB instance for transitional soy proto support:
|
|
11701
|
+
* http://goto/soy-param-migration
|
|
11702
|
+
* @return {!Object}
|
|
11703
|
+
*/
|
|
11704
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
|
|
11705
|
+
return proto.clarifai.api.PatchAnnotationTracksRequest.toObject(opt_includeInstance, this);
|
|
11706
|
+
};
|
|
11707
|
+
/**
|
|
11708
|
+
* Static version of the {@see toObject} method.
|
|
11709
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11710
|
+
* the JSPB instance for transitional soy proto support:
|
|
11711
|
+
* http://goto/soy-param-migration
|
|
11712
|
+
* @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The msg instance to transform.
|
|
11713
|
+
* @return {!Object}
|
|
11714
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11715
|
+
*/
|
|
11716
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.toObject = function (includeInstance, msg) {
|
|
11717
|
+
var f, obj = {
|
|
11718
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11719
|
+
annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(), proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance),
|
|
11720
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11721
|
+
action: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
11722
|
+
};
|
|
11723
|
+
if (includeInstance) {
|
|
11724
|
+
obj.$jspbMessageInstance = msg;
|
|
11725
|
+
}
|
|
11726
|
+
return obj;
|
|
11727
|
+
};
|
|
11728
|
+
}
|
|
11729
|
+
/**
|
|
11730
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11731
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11732
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
|
|
11733
|
+
*/
|
|
11734
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinary = function (bytes) {
|
|
11735
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11736
|
+
var msg = new proto.clarifai.api.PatchAnnotationTracksRequest;
|
|
11737
|
+
return proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
|
|
11738
|
+
};
|
|
11739
|
+
/**
|
|
11740
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11741
|
+
* given reader into the given message object.
|
|
11742
|
+
* @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The message object to deserialize into.
|
|
11743
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11744
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
|
|
11745
|
+
*/
|
|
11746
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
11747
|
+
while (reader.nextField()) {
|
|
11748
|
+
if (reader.isEndGroup()) {
|
|
11749
|
+
break;
|
|
11750
|
+
}
|
|
11751
|
+
var field = reader.getFieldNumber();
|
|
11752
|
+
switch (field) {
|
|
11753
|
+
case 1:
|
|
11754
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
11755
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
11756
|
+
msg.setUserAppId(value);
|
|
11757
|
+
break;
|
|
11758
|
+
case 2:
|
|
11759
|
+
var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
|
|
11760
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
|
|
11761
|
+
msg.addAnnotationTracks(value);
|
|
11762
|
+
break;
|
|
11763
|
+
case 3:
|
|
11764
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11765
|
+
msg.setInputId(value);
|
|
11766
|
+
break;
|
|
11767
|
+
case 4:
|
|
11768
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11769
|
+
msg.setAction(value);
|
|
11770
|
+
break;
|
|
11771
|
+
default:
|
|
11772
|
+
reader.skipField();
|
|
11773
|
+
break;
|
|
11774
|
+
}
|
|
11775
|
+
}
|
|
11776
|
+
return msg;
|
|
11777
|
+
};
|
|
11778
|
+
/**
|
|
11779
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11780
|
+
* @return {!Uint8Array}
|
|
11781
|
+
*/
|
|
11782
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.serializeBinary = function () {
|
|
11783
|
+
var writer = new jspb.BinaryWriter();
|
|
11784
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
|
|
11785
|
+
return writer.getResultBuffer();
|
|
11786
|
+
};
|
|
11787
|
+
/**
|
|
11788
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11789
|
+
* format), writing to the given BinaryWriter.
|
|
11790
|
+
* @param {!proto.clarifai.api.PatchAnnotationTracksRequest} message
|
|
11791
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11792
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11793
|
+
*/
|
|
11794
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
|
|
11795
|
+
var f = undefined;
|
|
11796
|
+
f = message.getUserAppId();
|
|
11797
|
+
if (f != null) {
|
|
11798
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
11799
|
+
}
|
|
11800
|
+
f = message.getAnnotationTracksList();
|
|
11801
|
+
if (f.length > 0) {
|
|
11802
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter);
|
|
11803
|
+
}
|
|
11804
|
+
f = message.getInputId();
|
|
11805
|
+
if (f.length > 0) {
|
|
11806
|
+
writer.writeString(3, f);
|
|
11807
|
+
}
|
|
11808
|
+
f = message.getAction();
|
|
11809
|
+
if (f.length > 0) {
|
|
11810
|
+
writer.writeString(4, f);
|
|
11811
|
+
}
|
|
11812
|
+
};
|
|
11813
|
+
/**
|
|
11814
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
11815
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
11816
|
+
*/
|
|
11817
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getUserAppId = function () {
|
|
11818
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
11819
|
+
};
|
|
11820
|
+
/**
|
|
11821
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
11822
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
|
|
11823
|
+
*/
|
|
11824
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setUserAppId = function (value) {
|
|
11825
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
11826
|
+
};
|
|
11827
|
+
/**
|
|
11828
|
+
* Clears the message field making it undefined.
|
|
11829
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
|
|
11830
|
+
*/
|
|
11831
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.clearUserAppId = function () {
|
|
11832
|
+
return this.setUserAppId(undefined);
|
|
11833
|
+
};
|
|
11834
|
+
/**
|
|
11835
|
+
* Returns whether this field is set.
|
|
11836
|
+
* @return {boolean}
|
|
11837
|
+
*/
|
|
11838
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.hasUserAppId = function () {
|
|
11839
|
+
return jspb.Message.getField(this, 1) != null;
|
|
11840
|
+
};
|
|
11841
|
+
/**
|
|
11842
|
+
* repeated AnnotationTrack annotation_tracks = 2;
|
|
11843
|
+
* @return {!Array<!proto.clarifai.api.AnnotationTrack>}
|
|
11844
|
+
*/
|
|
11845
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getAnnotationTracksList = function () {
|
|
11846
|
+
return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
|
|
11847
|
+
};
|
|
11848
|
+
/**
|
|
11849
|
+
* @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
|
|
11850
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
|
|
11851
|
+
*/
|
|
11852
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setAnnotationTracksList = function (value) {
|
|
11853
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
11854
|
+
};
|
|
11855
|
+
/**
|
|
11856
|
+
* @param {!proto.clarifai.api.AnnotationTrack=} opt_value
|
|
11857
|
+
* @param {number=} opt_index
|
|
11858
|
+
* @return {!proto.clarifai.api.AnnotationTrack}
|
|
11859
|
+
*/
|
|
11860
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.addAnnotationTracks = function (opt_value, opt_index) {
|
|
11861
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
|
|
11862
|
+
};
|
|
11863
|
+
/**
|
|
11864
|
+
* Clears the list making it empty but non-null.
|
|
11865
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
|
|
11866
|
+
*/
|
|
11867
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.clearAnnotationTracksList = function () {
|
|
11868
|
+
return this.setAnnotationTracksList([]);
|
|
11869
|
+
};
|
|
11870
|
+
/**
|
|
11871
|
+
* optional string input_id = 3;
|
|
11872
|
+
* @return {string}
|
|
11873
|
+
*/
|
|
11874
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getInputId = function () {
|
|
11875
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
11876
|
+
};
|
|
11877
|
+
/**
|
|
11878
|
+
* @param {string} value
|
|
11879
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
|
|
11880
|
+
*/
|
|
11881
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setInputId = function (value) {
|
|
11882
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
11883
|
+
};
|
|
11884
|
+
/**
|
|
11885
|
+
* optional string action = 4;
|
|
11886
|
+
* @return {string}
|
|
11887
|
+
*/
|
|
11888
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getAction = function () {
|
|
11889
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
11890
|
+
};
|
|
11891
|
+
/**
|
|
11892
|
+
* @param {string} value
|
|
11893
|
+
* @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
|
|
11894
|
+
*/
|
|
11895
|
+
proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setAction = function (value) {
|
|
11896
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
11897
|
+
};
|
|
11898
|
+
/**
|
|
11899
|
+
* List of repeated fields within this message type.
|
|
11900
|
+
* @private {!Array<number>}
|
|
11901
|
+
* @const
|
|
11902
|
+
*/
|
|
11903
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.repeatedFields_ = [2];
|
|
11904
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11905
|
+
/**
|
|
11906
|
+
* Creates an object representation of this proto.
|
|
11907
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
11908
|
+
* Optional fields that are not set will be set to undefined.
|
|
11909
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
11910
|
+
* For the list of reserved names please see:
|
|
11911
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
11912
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
11913
|
+
* JSPB instance for transitional soy proto support:
|
|
11914
|
+
* http://goto/soy-param-migration
|
|
11915
|
+
* @return {!Object}
|
|
11916
|
+
*/
|
|
11917
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
|
|
11918
|
+
return proto.clarifai.api.DeleteAnnotationTracksRequest.toObject(opt_includeInstance, this);
|
|
11919
|
+
};
|
|
11920
|
+
/**
|
|
11921
|
+
* Static version of the {@see toObject} method.
|
|
11922
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
11923
|
+
* the JSPB instance for transitional soy proto support:
|
|
11924
|
+
* http://goto/soy-param-migration
|
|
11925
|
+
* @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} msg The msg instance to transform.
|
|
11926
|
+
* @return {!Object}
|
|
11927
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
11928
|
+
*/
|
|
11929
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.toObject = function (includeInstance, msg) {
|
|
11930
|
+
var f, obj = {
|
|
11931
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
11932
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
11933
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
11934
|
+
};
|
|
11935
|
+
if (includeInstance) {
|
|
11936
|
+
obj.$jspbMessageInstance = msg;
|
|
11937
|
+
}
|
|
11938
|
+
return obj;
|
|
11939
|
+
};
|
|
11940
|
+
}
|
|
11941
|
+
/**
|
|
11942
|
+
* Deserializes binary data (in protobuf wire format).
|
|
11943
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
11944
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest}
|
|
11945
|
+
*/
|
|
11946
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinary = function (bytes) {
|
|
11947
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
11948
|
+
var msg = new proto.clarifai.api.DeleteAnnotationTracksRequest;
|
|
11949
|
+
return proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
|
|
11950
|
+
};
|
|
11951
|
+
/**
|
|
11952
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
11953
|
+
* given reader into the given message object.
|
|
11954
|
+
* @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} msg The message object to deserialize into.
|
|
11955
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
11956
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest}
|
|
11957
|
+
*/
|
|
11958
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
11959
|
+
while (reader.nextField()) {
|
|
11960
|
+
if (reader.isEndGroup()) {
|
|
11961
|
+
break;
|
|
11962
|
+
}
|
|
11963
|
+
var field = reader.getFieldNumber();
|
|
11964
|
+
switch (field) {
|
|
11965
|
+
case 1:
|
|
11966
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
11967
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
11968
|
+
msg.setUserAppId(value);
|
|
11969
|
+
break;
|
|
11970
|
+
case 2:
|
|
11971
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11972
|
+
msg.addIds(value);
|
|
11973
|
+
break;
|
|
11974
|
+
case 3:
|
|
11975
|
+
var value = /** @type {string} */ (reader.readString());
|
|
11976
|
+
msg.setInputId(value);
|
|
11977
|
+
break;
|
|
11978
|
+
default:
|
|
11979
|
+
reader.skipField();
|
|
11980
|
+
break;
|
|
11981
|
+
}
|
|
11982
|
+
}
|
|
11983
|
+
return msg;
|
|
11984
|
+
};
|
|
11985
|
+
/**
|
|
11986
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
11987
|
+
* @return {!Uint8Array}
|
|
11988
|
+
*/
|
|
11989
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.serializeBinary = function () {
|
|
11990
|
+
var writer = new jspb.BinaryWriter();
|
|
11991
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
|
|
11992
|
+
return writer.getResultBuffer();
|
|
11993
|
+
};
|
|
11994
|
+
/**
|
|
11995
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
11996
|
+
* format), writing to the given BinaryWriter.
|
|
11997
|
+
* @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} message
|
|
11998
|
+
* @param {!jspb.BinaryWriter} writer
|
|
11999
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12000
|
+
*/
|
|
12001
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
|
|
12002
|
+
var f = undefined;
|
|
12003
|
+
f = message.getUserAppId();
|
|
12004
|
+
if (f != null) {
|
|
12005
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
12006
|
+
}
|
|
12007
|
+
f = message.getIdsList();
|
|
12008
|
+
if (f.length > 0) {
|
|
12009
|
+
writer.writeRepeatedString(2, f);
|
|
12010
|
+
}
|
|
12011
|
+
f = message.getInputId();
|
|
12012
|
+
if (f.length > 0) {
|
|
12013
|
+
writer.writeString(3, f);
|
|
12014
|
+
}
|
|
12015
|
+
};
|
|
12016
|
+
/**
|
|
12017
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
12018
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
12019
|
+
*/
|
|
12020
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getUserAppId = function () {
|
|
12021
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
12022
|
+
};
|
|
12023
|
+
/**
|
|
12024
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
12025
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
|
|
12026
|
+
*/
|
|
12027
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setUserAppId = function (value) {
|
|
12028
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
12029
|
+
};
|
|
12030
|
+
/**
|
|
12031
|
+
* Clears the message field making it undefined.
|
|
12032
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
|
|
12033
|
+
*/
|
|
12034
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.clearUserAppId = function () {
|
|
12035
|
+
return this.setUserAppId(undefined);
|
|
12036
|
+
};
|
|
12037
|
+
/**
|
|
12038
|
+
* Returns whether this field is set.
|
|
12039
|
+
* @return {boolean}
|
|
12040
|
+
*/
|
|
12041
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.hasUserAppId = function () {
|
|
12042
|
+
return jspb.Message.getField(this, 1) != null;
|
|
12043
|
+
};
|
|
12044
|
+
/**
|
|
12045
|
+
* repeated string ids = 2;
|
|
12046
|
+
* @return {!Array<string>}
|
|
12047
|
+
*/
|
|
12048
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getIdsList = function () {
|
|
12049
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
12050
|
+
};
|
|
12051
|
+
/**
|
|
12052
|
+
* @param {!Array<string>} value
|
|
12053
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
|
|
12054
|
+
*/
|
|
12055
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setIdsList = function (value) {
|
|
12056
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
12057
|
+
};
|
|
12058
|
+
/**
|
|
12059
|
+
* @param {string} value
|
|
12060
|
+
* @param {number=} opt_index
|
|
12061
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
|
|
12062
|
+
*/
|
|
12063
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.addIds = function (value, opt_index) {
|
|
12064
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
12065
|
+
};
|
|
12066
|
+
/**
|
|
12067
|
+
* Clears the list making it empty but non-null.
|
|
12068
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
|
|
12069
|
+
*/
|
|
12070
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.clearIdsList = function () {
|
|
12071
|
+
return this.setIdsList([]);
|
|
12072
|
+
};
|
|
12073
|
+
/**
|
|
12074
|
+
* optional string input_id = 3;
|
|
12075
|
+
* @return {string}
|
|
12076
|
+
*/
|
|
12077
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getInputId = function () {
|
|
12078
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12079
|
+
};
|
|
12080
|
+
/**
|
|
12081
|
+
* @param {string} value
|
|
12082
|
+
* @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
|
|
12083
|
+
*/
|
|
12084
|
+
proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setInputId = function (value) {
|
|
12085
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12086
|
+
};
|
|
12087
|
+
/**
|
|
12088
|
+
* List of repeated fields within this message type.
|
|
12089
|
+
* @private {!Array<number>}
|
|
12090
|
+
* @const
|
|
12091
|
+
*/
|
|
12092
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.repeatedFields_ = [2];
|
|
12093
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12094
|
+
/**
|
|
12095
|
+
* Creates an object representation of this proto.
|
|
12096
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12097
|
+
* Optional fields that are not set will be set to undefined.
|
|
12098
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12099
|
+
* For the list of reserved names please see:
|
|
12100
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12101
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12102
|
+
* JSPB instance for transitional soy proto support:
|
|
12103
|
+
* http://goto/soy-param-migration
|
|
12104
|
+
* @return {!Object}
|
|
12105
|
+
*/
|
|
12106
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.toObject = function (opt_includeInstance) {
|
|
12107
|
+
return proto.clarifai.api.MultiAnnotationTrackResponse.toObject(opt_includeInstance, this);
|
|
12108
|
+
};
|
|
12109
|
+
/**
|
|
12110
|
+
* Static version of the {@see toObject} method.
|
|
12111
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12112
|
+
* the JSPB instance for transitional soy proto support:
|
|
12113
|
+
* http://goto/soy-param-migration
|
|
12114
|
+
* @param {!proto.clarifai.api.MultiAnnotationTrackResponse} msg The msg instance to transform.
|
|
12115
|
+
* @return {!Object}
|
|
12116
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12117
|
+
*/
|
|
12118
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.toObject = function (includeInstance, msg) {
|
|
12119
|
+
var f, obj = {
|
|
12120
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
12121
|
+
annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(), proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance)
|
|
12122
|
+
};
|
|
12123
|
+
if (includeInstance) {
|
|
12124
|
+
obj.$jspbMessageInstance = msg;
|
|
12125
|
+
}
|
|
12126
|
+
return obj;
|
|
12127
|
+
};
|
|
12128
|
+
}
|
|
12129
|
+
/**
|
|
12130
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12131
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12132
|
+
* @return {!proto.clarifai.api.MultiAnnotationTrackResponse}
|
|
12133
|
+
*/
|
|
12134
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinary = function (bytes) {
|
|
12135
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12136
|
+
var msg = new proto.clarifai.api.MultiAnnotationTrackResponse;
|
|
12137
|
+
return proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinaryFromReader(msg, reader);
|
|
12138
|
+
};
|
|
12139
|
+
/**
|
|
12140
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12141
|
+
* given reader into the given message object.
|
|
12142
|
+
* @param {!proto.clarifai.api.MultiAnnotationTrackResponse} msg The message object to deserialize into.
|
|
12143
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12144
|
+
* @return {!proto.clarifai.api.MultiAnnotationTrackResponse}
|
|
12145
|
+
*/
|
|
12146
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
12147
|
+
while (reader.nextField()) {
|
|
12148
|
+
if (reader.isEndGroup()) {
|
|
12149
|
+
break;
|
|
12150
|
+
}
|
|
12151
|
+
var field = reader.getFieldNumber();
|
|
12152
|
+
switch (field) {
|
|
12153
|
+
case 1:
|
|
12154
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
12155
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
12156
|
+
msg.setStatus(value);
|
|
12157
|
+
break;
|
|
12158
|
+
case 2:
|
|
12159
|
+
var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
|
|
12160
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
|
|
12161
|
+
msg.addAnnotationTracks(value);
|
|
12162
|
+
break;
|
|
12163
|
+
default:
|
|
12164
|
+
reader.skipField();
|
|
12165
|
+
break;
|
|
12166
|
+
}
|
|
12167
|
+
}
|
|
12168
|
+
return msg;
|
|
12169
|
+
};
|
|
12170
|
+
/**
|
|
12171
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12172
|
+
* @return {!Uint8Array}
|
|
12173
|
+
*/
|
|
12174
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.serializeBinary = function () {
|
|
12175
|
+
var writer = new jspb.BinaryWriter();
|
|
12176
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.serializeBinaryToWriter(this, writer);
|
|
12177
|
+
return writer.getResultBuffer();
|
|
12178
|
+
};
|
|
12179
|
+
/**
|
|
12180
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12181
|
+
* format), writing to the given BinaryWriter.
|
|
12182
|
+
* @param {!proto.clarifai.api.MultiAnnotationTrackResponse} message
|
|
12183
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12184
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12185
|
+
*/
|
|
12186
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.serializeBinaryToWriter = function (message, writer) {
|
|
12187
|
+
var f = undefined;
|
|
12188
|
+
f = message.getStatus();
|
|
12189
|
+
if (f != null) {
|
|
12190
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
12191
|
+
}
|
|
12192
|
+
f = message.getAnnotationTracksList();
|
|
12193
|
+
if (f.length > 0) {
|
|
12194
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter);
|
|
12195
|
+
}
|
|
12196
|
+
};
|
|
12197
|
+
/**
|
|
12198
|
+
* optional status.Status status = 1;
|
|
12199
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
12200
|
+
*/
|
|
12201
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.getStatus = function () {
|
|
12202
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
12203
|
+
};
|
|
12204
|
+
/**
|
|
12205
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
12206
|
+
* @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
|
|
12207
|
+
*/
|
|
12208
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.setStatus = function (value) {
|
|
12209
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
12210
|
+
};
|
|
12211
|
+
/**
|
|
12212
|
+
* Clears the message field making it undefined.
|
|
12213
|
+
* @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
|
|
12214
|
+
*/
|
|
12215
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.clearStatus = function () {
|
|
12216
|
+
return this.setStatus(undefined);
|
|
12217
|
+
};
|
|
12218
|
+
/**
|
|
12219
|
+
* Returns whether this field is set.
|
|
12220
|
+
* @return {boolean}
|
|
12221
|
+
*/
|
|
12222
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.hasStatus = function () {
|
|
12223
|
+
return jspb.Message.getField(this, 1) != null;
|
|
12224
|
+
};
|
|
12225
|
+
/**
|
|
12226
|
+
* repeated AnnotationTrack annotation_tracks = 2;
|
|
12227
|
+
* @return {!Array<!proto.clarifai.api.AnnotationTrack>}
|
|
12228
|
+
*/
|
|
12229
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.getAnnotationTracksList = function () {
|
|
12230
|
+
return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
|
|
12231
|
+
};
|
|
12232
|
+
/**
|
|
12233
|
+
* @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
|
|
12234
|
+
* @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
|
|
12235
|
+
*/
|
|
12236
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.setAnnotationTracksList = function (value) {
|
|
12237
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
12238
|
+
};
|
|
12239
|
+
/**
|
|
12240
|
+
* @param {!proto.clarifai.api.AnnotationTrack=} opt_value
|
|
12241
|
+
* @param {number=} opt_index
|
|
12242
|
+
* @return {!proto.clarifai.api.AnnotationTrack}
|
|
12243
|
+
*/
|
|
12244
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.addAnnotationTracks = function (opt_value, opt_index) {
|
|
12245
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
|
|
12246
|
+
};
|
|
12247
|
+
/**
|
|
12248
|
+
* Clears the list making it empty but non-null.
|
|
12249
|
+
* @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
|
|
12250
|
+
*/
|
|
12251
|
+
proto.clarifai.api.MultiAnnotationTrackResponse.prototype.clearAnnotationTracksList = function () {
|
|
12252
|
+
return this.setAnnotationTracksList([]);
|
|
12253
|
+
};
|
|
11150
12254
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11151
12255
|
/**
|
|
11152
12256
|
* Creates an object representation of this proto.
|
|
@@ -28793,6 +29897,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
28793
29897
|
modelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
28794
29898
|
modelVersionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
28795
29899
|
workflowId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
29900
|
+
computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
28796
29901
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
28797
29902
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
28798
29903
|
runnerId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
@@ -28861,6 +29966,10 @@ proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader = function
|
|
|
28861
29966
|
var value = /** @type {string} */ (reader.readString());
|
|
28862
29967
|
msg.setWorkflowId(value);
|
|
28863
29968
|
break;
|
|
29969
|
+
case 17:
|
|
29970
|
+
var value = /** @type {string} */ (reader.readString());
|
|
29971
|
+
msg.setComputeClusterUserId(value);
|
|
29972
|
+
break;
|
|
28864
29973
|
case 9:
|
|
28865
29974
|
var value = /** @type {string} */ (reader.readString());
|
|
28866
29975
|
msg.setComputeClusterId(value);
|
|
@@ -28946,6 +30055,10 @@ proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter = function (mes
|
|
|
28946
30055
|
if (f.length > 0) {
|
|
28947
30056
|
writer.writeString(7, f);
|
|
28948
30057
|
}
|
|
30058
|
+
f = message.getComputeClusterUserId();
|
|
30059
|
+
if (f.length > 0) {
|
|
30060
|
+
writer.writeString(17, f);
|
|
30061
|
+
}
|
|
28949
30062
|
f = message.getComputeClusterId();
|
|
28950
30063
|
if (f.length > 0) {
|
|
28951
30064
|
writer.writeString(9, f);
|
|
@@ -29091,6 +30204,20 @@ proto.clarifai.api.ListLogEntriesRequest.prototype.getWorkflowId = function () {
|
|
|
29091
30204
|
proto.clarifai.api.ListLogEntriesRequest.prototype.setWorkflowId = function (value) {
|
|
29092
30205
|
return jspb.Message.setProto3StringField(this, 7, value);
|
|
29093
30206
|
};
|
|
30207
|
+
/**
|
|
30208
|
+
* optional string compute_cluster_user_id = 17;
|
|
30209
|
+
* @return {string}
|
|
30210
|
+
*/
|
|
30211
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getComputeClusterUserId = function () {
|
|
30212
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
30213
|
+
};
|
|
30214
|
+
/**
|
|
30215
|
+
* @param {string} value
|
|
30216
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
30217
|
+
*/
|
|
30218
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setComputeClusterUserId = function (value) {
|
|
30219
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
30220
|
+
};
|
|
29094
30221
|
/**
|
|
29095
30222
|
* optional string compute_cluster_id = 9;
|
|
29096
30223
|
* @return {string}
|
|
@@ -29235,6 +30362,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
29235
30362
|
modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
29236
30363
|
modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
29237
30364
|
workflowId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
30365
|
+
computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
29238
30366
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
29239
30367
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
29240
30368
|
runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
@@ -29295,6 +30423,10 @@ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader = functio
|
|
|
29295
30423
|
var value = /** @type {string} */ (reader.readString());
|
|
29296
30424
|
msg.setWorkflowId(value);
|
|
29297
30425
|
break;
|
|
30426
|
+
case 17:
|
|
30427
|
+
var value = /** @type {string} */ (reader.readString());
|
|
30428
|
+
msg.setComputeClusterUserId(value);
|
|
30429
|
+
break;
|
|
29298
30430
|
case 6:
|
|
29299
30431
|
var value = /** @type {string} */ (reader.readString());
|
|
29300
30432
|
msg.setComputeClusterId(value);
|
|
@@ -29372,6 +30504,10 @@ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter = function (m
|
|
|
29372
30504
|
if (f.length > 0) {
|
|
29373
30505
|
writer.writeString(5, f);
|
|
29374
30506
|
}
|
|
30507
|
+
f = message.getComputeClusterUserId();
|
|
30508
|
+
if (f.length > 0) {
|
|
30509
|
+
writer.writeString(17, f);
|
|
30510
|
+
}
|
|
29375
30511
|
f = message.getComputeClusterId();
|
|
29376
30512
|
if (f.length > 0) {
|
|
29377
30513
|
writer.writeString(6, f);
|
|
@@ -29489,6 +30625,20 @@ proto.clarifai.api.StreamLogEntriesRequest.prototype.getWorkflowId = function ()
|
|
|
29489
30625
|
proto.clarifai.api.StreamLogEntriesRequest.prototype.setWorkflowId = function (value) {
|
|
29490
30626
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
29491
30627
|
};
|
|
30628
|
+
/**
|
|
30629
|
+
* optional string compute_cluster_user_id = 17;
|
|
30630
|
+
* @return {string}
|
|
30631
|
+
*/
|
|
30632
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.getComputeClusterUserId = function () {
|
|
30633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
30634
|
+
};
|
|
30635
|
+
/**
|
|
30636
|
+
* @param {string} value
|
|
30637
|
+
* @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
|
|
30638
|
+
*/
|
|
30639
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.setComputeClusterUserId = function (value) {
|
|
30640
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
30641
|
+
};
|
|
29492
30642
|
/**
|
|
29493
30643
|
* optional string compute_cluster_id = 6;
|
|
29494
30644
|
* @return {string}
|
|
@@ -72743,7 +73893,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRegion = function (
|
|
|
72743
73893
|
* @private {!Array<number>}
|
|
72744
73894
|
* @const
|
|
72745
73895
|
*/
|
|
72746
|
-
proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2, 3, 4, 5];
|
|
73896
|
+
proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2, 3, 4, 5, 6];
|
|
72747
73897
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
72748
73898
|
/**
|
|
72749
73899
|
* Creates an object representation of this proto.
|
|
@@ -72775,7 +73925,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
72775
73925
|
computeClustersList: jspb.Message.toObjectList(msg.getComputeClustersList(), proto_clarifai_api_resources_pb.ComputeCluster.toObject, includeInstance),
|
|
72776
73926
|
nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto_clarifai_api_resources_pb.Nodepool.toObject, includeInstance),
|
|
72777
73927
|
runnersList: jspb.Message.toObjectList(msg.getRunnersList(), proto_clarifai_api_resources_pb.Runner.toObject, includeInstance),
|
|
72778
|
-
pipelineVersionRunsList: jspb.Message.toObjectList(msg.getPipelineVersionRunsList(), proto_clarifai_api_resources_pb.PipelineVersionRun.toObject, includeInstance)
|
|
73928
|
+
pipelineVersionRunsList: jspb.Message.toObjectList(msg.getPipelineVersionRunsList(), proto_clarifai_api_resources_pb.PipelineVersionRun.toObject, includeInstance),
|
|
73929
|
+
secretsList: jspb.Message.toObjectList(msg.getSecretsList(), proto_clarifai_api_resources_pb.Secret.toObject, includeInstance)
|
|
72779
73930
|
};
|
|
72780
73931
|
if (includeInstance) {
|
|
72781
73932
|
obj.$jspbMessageInstance = msg;
|
|
@@ -72831,6 +73982,11 @@ proto.clarifai.api.SyncStateRequest.deserializeBinaryFromReader = function (msg,
|
|
|
72831
73982
|
reader.readMessage(value, proto_clarifai_api_resources_pb.PipelineVersionRun.deserializeBinaryFromReader);
|
|
72832
73983
|
msg.addPipelineVersionRuns(value);
|
|
72833
73984
|
break;
|
|
73985
|
+
case 6:
|
|
73986
|
+
var value = new proto_clarifai_api_resources_pb.Secret;
|
|
73987
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
|
|
73988
|
+
msg.addSecrets(value);
|
|
73989
|
+
break;
|
|
72834
73990
|
default:
|
|
72835
73991
|
reader.skipField();
|
|
72836
73992
|
break;
|
|
@@ -72876,6 +74032,10 @@ proto.clarifai.api.SyncStateRequest.serializeBinaryToWriter = function (message,
|
|
|
72876
74032
|
if (f.length > 0) {
|
|
72877
74033
|
writer.writeRepeatedMessage(5, f, proto_clarifai_api_resources_pb.PipelineVersionRun.serializeBinaryToWriter);
|
|
72878
74034
|
}
|
|
74035
|
+
f = message.getSecretsList();
|
|
74036
|
+
if (f.length > 0) {
|
|
74037
|
+
writer.writeRepeatedMessage(6, f, proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter);
|
|
74038
|
+
}
|
|
72879
74039
|
};
|
|
72880
74040
|
/**
|
|
72881
74041
|
* optional string operation_type = 1;
|
|
@@ -73007,6 +74167,35 @@ proto.clarifai.api.SyncStateRequest.prototype.addPipelineVersionRuns = function
|
|
|
73007
74167
|
proto.clarifai.api.SyncStateRequest.prototype.clearPipelineVersionRunsList = function () {
|
|
73008
74168
|
return this.setPipelineVersionRunsList([]);
|
|
73009
74169
|
};
|
|
74170
|
+
/**
|
|
74171
|
+
* repeated Secret secrets = 6;
|
|
74172
|
+
* @return {!Array<!proto.clarifai.api.Secret>}
|
|
74173
|
+
*/
|
|
74174
|
+
proto.clarifai.api.SyncStateRequest.prototype.getSecretsList = function () {
|
|
74175
|
+
return /** @type{!Array<!proto.clarifai.api.Secret>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 6));
|
|
74176
|
+
};
|
|
74177
|
+
/**
|
|
74178
|
+
* @param {!Array<!proto.clarifai.api.Secret>} value
|
|
74179
|
+
* @return {!proto.clarifai.api.SyncStateRequest} returns this
|
|
74180
|
+
*/
|
|
74181
|
+
proto.clarifai.api.SyncStateRequest.prototype.setSecretsList = function (value) {
|
|
74182
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
74183
|
+
};
|
|
74184
|
+
/**
|
|
74185
|
+
* @param {!proto.clarifai.api.Secret=} opt_value
|
|
74186
|
+
* @param {number=} opt_index
|
|
74187
|
+
* @return {!proto.clarifai.api.Secret}
|
|
74188
|
+
*/
|
|
74189
|
+
proto.clarifai.api.SyncStateRequest.prototype.addSecrets = function (opt_value, opt_index) {
|
|
74190
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.Secret, opt_index);
|
|
74191
|
+
};
|
|
74192
|
+
/**
|
|
74193
|
+
* Clears the list making it empty but non-null.
|
|
74194
|
+
* @return {!proto.clarifai.api.SyncStateRequest} returns this
|
|
74195
|
+
*/
|
|
74196
|
+
proto.clarifai.api.SyncStateRequest.prototype.clearSecretsList = function () {
|
|
74197
|
+
return this.setSecretsList([]);
|
|
74198
|
+
};
|
|
73010
74199
|
/**
|
|
73011
74200
|
* List of repeated fields within this message type.
|
|
73012
74201
|
* @private {!Array<number>}
|
|
@@ -86899,7 +88088,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
86899
88088
|
proto.clarifai.api.GetSecretRequest.toObject = function (includeInstance, msg) {
|
|
86900
88089
|
var f, obj = {
|
|
86901
88090
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
86902
|
-
|
|
88091
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
86903
88092
|
};
|
|
86904
88093
|
if (includeInstance) {
|
|
86905
88094
|
obj.$jspbMessageInstance = msg;
|
|
@@ -86938,7 +88127,7 @@ proto.clarifai.api.GetSecretRequest.deserializeBinaryFromReader = function (msg,
|
|
|
86938
88127
|
break;
|
|
86939
88128
|
case 2:
|
|
86940
88129
|
var value = /** @type {string} */ (reader.readString());
|
|
86941
|
-
msg.
|
|
88130
|
+
msg.setId(value);
|
|
86942
88131
|
break;
|
|
86943
88132
|
default:
|
|
86944
88133
|
reader.skipField();
|
|
@@ -86969,7 +88158,7 @@ proto.clarifai.api.GetSecretRequest.serializeBinaryToWriter = function (message,
|
|
|
86969
88158
|
if (f != null) {
|
|
86970
88159
|
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
86971
88160
|
}
|
|
86972
|
-
f = message.
|
|
88161
|
+
f = message.getId();
|
|
86973
88162
|
if (f.length > 0) {
|
|
86974
88163
|
writer.writeString(2, f);
|
|
86975
88164
|
}
|
|
@@ -87003,17 +88192,17 @@ proto.clarifai.api.GetSecretRequest.prototype.hasUserAppId = function () {
|
|
|
87003
88192
|
return jspb.Message.getField(this, 1) != null;
|
|
87004
88193
|
};
|
|
87005
88194
|
/**
|
|
87006
|
-
* optional string
|
|
88195
|
+
* optional string id = 2;
|
|
87007
88196
|
* @return {string}
|
|
87008
88197
|
*/
|
|
87009
|
-
proto.clarifai.api.GetSecretRequest.prototype.
|
|
88198
|
+
proto.clarifai.api.GetSecretRequest.prototype.getId = function () {
|
|
87010
88199
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
87011
88200
|
};
|
|
87012
88201
|
/**
|
|
87013
88202
|
* @param {string} value
|
|
87014
88203
|
* @return {!proto.clarifai.api.GetSecretRequest} returns this
|
|
87015
88204
|
*/
|
|
87016
|
-
proto.clarifai.api.GetSecretRequest.prototype.
|
|
88205
|
+
proto.clarifai.api.GetSecretRequest.prototype.setId = function (value) {
|
|
87017
88206
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
87018
88207
|
};
|
|
87019
88208
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -87356,7 +88545,7 @@ proto.clarifai.api.PostSecretsRequest.prototype.clearSecretsList = function () {
|
|
|
87356
88545
|
* @private {!Array<number>}
|
|
87357
88546
|
* @const
|
|
87358
88547
|
*/
|
|
87359
|
-
proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [
|
|
88548
|
+
proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [5];
|
|
87360
88549
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87361
88550
|
/**
|
|
87362
88551
|
* Creates an object representation of this proto.
|
|
@@ -87385,8 +88574,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
87385
88574
|
proto.clarifai.api.PatchSecretsRequest.toObject = function (includeInstance, msg) {
|
|
87386
88575
|
var f, obj = {
|
|
87387
88576
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
87388
|
-
|
|
87389
|
-
action: jspb.Message.getFieldWithDefault(msg,
|
|
88577
|
+
secretList: jspb.Message.toObjectList(msg.getSecretList(), proto_clarifai_api_resources_pb.Secret.toObject, includeInstance),
|
|
88578
|
+
action: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
87390
88579
|
};
|
|
87391
88580
|
if (includeInstance) {
|
|
87392
88581
|
obj.$jspbMessageInstance = msg;
|
|
@@ -87423,12 +88612,12 @@ proto.clarifai.api.PatchSecretsRequest.deserializeBinaryFromReader = function (m
|
|
|
87423
88612
|
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
87424
88613
|
msg.setUserAppId(value);
|
|
87425
88614
|
break;
|
|
87426
|
-
case
|
|
88615
|
+
case 5:
|
|
87427
88616
|
var value = new proto_clarifai_api_resources_pb.Secret;
|
|
87428
88617
|
reader.readMessage(value, proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
|
|
87429
|
-
msg.
|
|
88618
|
+
msg.addSecret(value);
|
|
87430
88619
|
break;
|
|
87431
|
-
case
|
|
88620
|
+
case 8:
|
|
87432
88621
|
var value = /** @type {string} */ (reader.readString());
|
|
87433
88622
|
msg.setAction(value);
|
|
87434
88623
|
break;
|
|
@@ -87461,13 +88650,13 @@ proto.clarifai.api.PatchSecretsRequest.serializeBinaryToWriter = function (messa
|
|
|
87461
88650
|
if (f != null) {
|
|
87462
88651
|
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
87463
88652
|
}
|
|
87464
|
-
f = message.
|
|
88653
|
+
f = message.getSecretList();
|
|
87465
88654
|
if (f.length > 0) {
|
|
87466
|
-
writer.writeRepeatedMessage(
|
|
88655
|
+
writer.writeRepeatedMessage(5, f, proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter);
|
|
87467
88656
|
}
|
|
87468
88657
|
f = message.getAction();
|
|
87469
88658
|
if (f.length > 0) {
|
|
87470
|
-
writer.writeString(
|
|
88659
|
+
writer.writeString(8, f);
|
|
87471
88660
|
}
|
|
87472
88661
|
};
|
|
87473
88662
|
/**
|
|
@@ -87499,47 +88688,47 @@ proto.clarifai.api.PatchSecretsRequest.prototype.hasUserAppId = function () {
|
|
|
87499
88688
|
return jspb.Message.getField(this, 1) != null;
|
|
87500
88689
|
};
|
|
87501
88690
|
/**
|
|
87502
|
-
* repeated Secret
|
|
88691
|
+
* repeated Secret secret = 5;
|
|
87503
88692
|
* @return {!Array<!proto.clarifai.api.Secret>}
|
|
87504
88693
|
*/
|
|
87505
|
-
proto.clarifai.api.PatchSecretsRequest.prototype.
|
|
87506
|
-
return /** @type{!Array<!proto.clarifai.api.Secret>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret,
|
|
88694
|
+
proto.clarifai.api.PatchSecretsRequest.prototype.getSecretList = function () {
|
|
88695
|
+
return /** @type{!Array<!proto.clarifai.api.Secret>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 5));
|
|
87507
88696
|
};
|
|
87508
88697
|
/**
|
|
87509
88698
|
* @param {!Array<!proto.clarifai.api.Secret>} value
|
|
87510
88699
|
* @return {!proto.clarifai.api.PatchSecretsRequest} returns this
|
|
87511
88700
|
*/
|
|
87512
|
-
proto.clarifai.api.PatchSecretsRequest.prototype.
|
|
87513
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
88701
|
+
proto.clarifai.api.PatchSecretsRequest.prototype.setSecretList = function (value) {
|
|
88702
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
87514
88703
|
};
|
|
87515
88704
|
/**
|
|
87516
88705
|
* @param {!proto.clarifai.api.Secret=} opt_value
|
|
87517
88706
|
* @param {number=} opt_index
|
|
87518
88707
|
* @return {!proto.clarifai.api.Secret}
|
|
87519
88708
|
*/
|
|
87520
|
-
proto.clarifai.api.PatchSecretsRequest.prototype.
|
|
87521
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
88709
|
+
proto.clarifai.api.PatchSecretsRequest.prototype.addSecret = function (opt_value, opt_index) {
|
|
88710
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Secret, opt_index);
|
|
87522
88711
|
};
|
|
87523
88712
|
/**
|
|
87524
88713
|
* Clears the list making it empty but non-null.
|
|
87525
88714
|
* @return {!proto.clarifai.api.PatchSecretsRequest} returns this
|
|
87526
88715
|
*/
|
|
87527
|
-
proto.clarifai.api.PatchSecretsRequest.prototype.
|
|
87528
|
-
return this.
|
|
88716
|
+
proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretList = function () {
|
|
88717
|
+
return this.setSecretList([]);
|
|
87529
88718
|
};
|
|
87530
88719
|
/**
|
|
87531
|
-
* optional string action =
|
|
88720
|
+
* optional string action = 8;
|
|
87532
88721
|
* @return {string}
|
|
87533
88722
|
*/
|
|
87534
88723
|
proto.clarifai.api.PatchSecretsRequest.prototype.getAction = function () {
|
|
87535
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
88724
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
87536
88725
|
};
|
|
87537
88726
|
/**
|
|
87538
88727
|
* @param {string} value
|
|
87539
88728
|
* @return {!proto.clarifai.api.PatchSecretsRequest} returns this
|
|
87540
88729
|
*/
|
|
87541
88730
|
proto.clarifai.api.PatchSecretsRequest.prototype.setAction = function (value) {
|
|
87542
|
-
return jspb.Message.setProto3StringField(this,
|
|
88731
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
87543
88732
|
};
|
|
87544
88733
|
/**
|
|
87545
88734
|
* List of repeated fields within this message type.
|