clarifai-web-grpc 11.2.0 → 11.2.1
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 +441 -17
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +398 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +441 -17
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +398 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +69 -3
- package/proto/clarifai/api/resources_pb.js +556 -18
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +12 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +61 -0
- package/proto/clarifai/api/service_pb.d.ts +62 -0
- package/proto/clarifai/api/service_pb.js +505 -2
|
@@ -296,6 +296,7 @@ goog.exportSymbol('proto.clarifai.api.PatchModelsRequest', null, global);
|
|
|
296
296
|
goog.exportSymbol('proto.clarifai.api.PatchModuleVersionsRequest', null, global);
|
|
297
297
|
goog.exportSymbol('proto.clarifai.api.PatchModulesRequest', null, global);
|
|
298
298
|
goog.exportSymbol('proto.clarifai.api.PatchNodepoolsRequest', null, global);
|
|
299
|
+
goog.exportSymbol('proto.clarifai.api.PatchRunnersRequest', null, global);
|
|
299
300
|
goog.exportSymbol('proto.clarifai.api.PatchSearchesRequest', null, global);
|
|
300
301
|
goog.exportSymbol('proto.clarifai.api.PatchTasksRequest', null, global);
|
|
301
302
|
goog.exportSymbol('proto.clarifai.api.PatchWorkflowIdsRequest', null, global);
|
|
@@ -7209,6 +7210,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7209
7210
|
*/
|
|
7210
7211
|
proto.clarifai.api.PostRunnersRequest.displayName = 'proto.clarifai.api.PostRunnersRequest';
|
|
7211
7212
|
}
|
|
7213
|
+
/**
|
|
7214
|
+
* Generated by JsPbCodeGenerator.
|
|
7215
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7216
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7217
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7218
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7219
|
+
* valid.
|
|
7220
|
+
* @extends {jspb.Message}
|
|
7221
|
+
* @constructor
|
|
7222
|
+
*/
|
|
7223
|
+
proto.clarifai.api.PatchRunnersRequest = function(opt_data) {
|
|
7224
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchRunnersRequest.repeatedFields_, null);
|
|
7225
|
+
};
|
|
7226
|
+
goog.inherits(proto.clarifai.api.PatchRunnersRequest, jspb.Message);
|
|
7227
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7228
|
+
/**
|
|
7229
|
+
* @public
|
|
7230
|
+
* @override
|
|
7231
|
+
*/
|
|
7232
|
+
proto.clarifai.api.PatchRunnersRequest.displayName = 'proto.clarifai.api.PatchRunnersRequest';
|
|
7233
|
+
}
|
|
7212
7234
|
/**
|
|
7213
7235
|
* Generated by JsPbCodeGenerator.
|
|
7214
7236
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -32978,7 +33000,10 @@ proto.clarifai.api.ListLogEntriesRequest.toObject = function(includeInstance, ms
|
|
|
32978
33000
|
workflowId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
32979
33001
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
32980
33002
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
32981
|
-
runnerId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
33003
|
+
runnerId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
33004
|
+
pipelineId: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
33005
|
+
pipelineVersionId: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
33006
|
+
pipelineVersionRunId: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
32982
33007
|
};
|
|
32983
33008
|
|
|
32984
33009
|
if (includeInstance) {
|
|
@@ -33056,6 +33081,18 @@ proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader = function(
|
|
|
33056
33081
|
var value = /** @type {string} */ (reader.readString());
|
|
33057
33082
|
msg.setRunnerId(value);
|
|
33058
33083
|
break;
|
|
33084
|
+
case 12:
|
|
33085
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33086
|
+
msg.setPipelineId(value);
|
|
33087
|
+
break;
|
|
33088
|
+
case 13:
|
|
33089
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33090
|
+
msg.setPipelineVersionId(value);
|
|
33091
|
+
break;
|
|
33092
|
+
case 14:
|
|
33093
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33094
|
+
msg.setPipelineVersionRunId(value);
|
|
33095
|
+
break;
|
|
33059
33096
|
default:
|
|
33060
33097
|
reader.skipField();
|
|
33061
33098
|
break;
|
|
@@ -33156,6 +33193,27 @@ proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter = function(mess
|
|
|
33156
33193
|
f
|
|
33157
33194
|
);
|
|
33158
33195
|
}
|
|
33196
|
+
f = message.getPipelineId();
|
|
33197
|
+
if (f.length > 0) {
|
|
33198
|
+
writer.writeString(
|
|
33199
|
+
12,
|
|
33200
|
+
f
|
|
33201
|
+
);
|
|
33202
|
+
}
|
|
33203
|
+
f = message.getPipelineVersionId();
|
|
33204
|
+
if (f.length > 0) {
|
|
33205
|
+
writer.writeString(
|
|
33206
|
+
13,
|
|
33207
|
+
f
|
|
33208
|
+
);
|
|
33209
|
+
}
|
|
33210
|
+
f = message.getPipelineVersionRunId();
|
|
33211
|
+
if (f.length > 0) {
|
|
33212
|
+
writer.writeString(
|
|
33213
|
+
14,
|
|
33214
|
+
f
|
|
33215
|
+
);
|
|
33216
|
+
}
|
|
33159
33217
|
};
|
|
33160
33218
|
|
|
33161
33219
|
|
|
@@ -33358,6 +33416,60 @@ proto.clarifai.api.ListLogEntriesRequest.prototype.setRunnerId = function(value)
|
|
|
33358
33416
|
};
|
|
33359
33417
|
|
|
33360
33418
|
|
|
33419
|
+
/**
|
|
33420
|
+
* optional string pipeline_id = 12;
|
|
33421
|
+
* @return {string}
|
|
33422
|
+
*/
|
|
33423
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getPipelineId = function() {
|
|
33424
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
33425
|
+
};
|
|
33426
|
+
|
|
33427
|
+
|
|
33428
|
+
/**
|
|
33429
|
+
* @param {string} value
|
|
33430
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
33431
|
+
*/
|
|
33432
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setPipelineId = function(value) {
|
|
33433
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
33434
|
+
};
|
|
33435
|
+
|
|
33436
|
+
|
|
33437
|
+
/**
|
|
33438
|
+
* optional string pipeline_version_id = 13;
|
|
33439
|
+
* @return {string}
|
|
33440
|
+
*/
|
|
33441
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getPipelineVersionId = function() {
|
|
33442
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
33443
|
+
};
|
|
33444
|
+
|
|
33445
|
+
|
|
33446
|
+
/**
|
|
33447
|
+
* @param {string} value
|
|
33448
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
33449
|
+
*/
|
|
33450
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setPipelineVersionId = function(value) {
|
|
33451
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
33452
|
+
};
|
|
33453
|
+
|
|
33454
|
+
|
|
33455
|
+
/**
|
|
33456
|
+
* optional string pipeline_version_run_id = 14;
|
|
33457
|
+
* @return {string}
|
|
33458
|
+
*/
|
|
33459
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.getPipelineVersionRunId = function() {
|
|
33460
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
33461
|
+
};
|
|
33462
|
+
|
|
33463
|
+
|
|
33464
|
+
/**
|
|
33465
|
+
* @param {string} value
|
|
33466
|
+
* @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
|
|
33467
|
+
*/
|
|
33468
|
+
proto.clarifai.api.ListLogEntriesRequest.prototype.setPipelineVersionRunId = function(value) {
|
|
33469
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
33470
|
+
};
|
|
33471
|
+
|
|
33472
|
+
|
|
33361
33473
|
|
|
33362
33474
|
|
|
33363
33475
|
|
|
@@ -33397,7 +33509,10 @@ proto.clarifai.api.StreamLogEntriesRequest.toObject = function(includeInstance,
|
|
|
33397
33509
|
workflowId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
33398
33510
|
computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
33399
33511
|
nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
33400
|
-
runnerId: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
33512
|
+
runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
33513
|
+
pipelineId: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
33514
|
+
pipelineVersionId: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
33515
|
+
pipelineVersionRunId: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
33401
33516
|
};
|
|
33402
33517
|
|
|
33403
33518
|
if (includeInstance) {
|
|
@@ -33467,6 +33582,18 @@ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader = functio
|
|
|
33467
33582
|
var value = /** @type {string} */ (reader.readString());
|
|
33468
33583
|
msg.setRunnerId(value);
|
|
33469
33584
|
break;
|
|
33585
|
+
case 12:
|
|
33586
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33587
|
+
msg.setPipelineId(value);
|
|
33588
|
+
break;
|
|
33589
|
+
case 13:
|
|
33590
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33591
|
+
msg.setPipelineVersionId(value);
|
|
33592
|
+
break;
|
|
33593
|
+
case 14:
|
|
33594
|
+
var value = /** @type {string} */ (reader.readString());
|
|
33595
|
+
msg.setPipelineVersionRunId(value);
|
|
33596
|
+
break;
|
|
33470
33597
|
default:
|
|
33471
33598
|
reader.skipField();
|
|
33472
33599
|
break;
|
|
@@ -33553,6 +33680,27 @@ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter = function(me
|
|
|
33553
33680
|
f
|
|
33554
33681
|
);
|
|
33555
33682
|
}
|
|
33683
|
+
f = message.getPipelineId();
|
|
33684
|
+
if (f.length > 0) {
|
|
33685
|
+
writer.writeString(
|
|
33686
|
+
12,
|
|
33687
|
+
f
|
|
33688
|
+
);
|
|
33689
|
+
}
|
|
33690
|
+
f = message.getPipelineVersionId();
|
|
33691
|
+
if (f.length > 0) {
|
|
33692
|
+
writer.writeString(
|
|
33693
|
+
13,
|
|
33694
|
+
f
|
|
33695
|
+
);
|
|
33696
|
+
}
|
|
33697
|
+
f = message.getPipelineVersionRunId();
|
|
33698
|
+
if (f.length > 0) {
|
|
33699
|
+
writer.writeString(
|
|
33700
|
+
14,
|
|
33701
|
+
f
|
|
33702
|
+
);
|
|
33703
|
+
}
|
|
33556
33704
|
};
|
|
33557
33705
|
|
|
33558
33706
|
|
|
@@ -33719,6 +33867,60 @@ proto.clarifai.api.StreamLogEntriesRequest.prototype.setRunnerId = function(valu
|
|
|
33719
33867
|
};
|
|
33720
33868
|
|
|
33721
33869
|
|
|
33870
|
+
/**
|
|
33871
|
+
* optional string pipeline_id = 12;
|
|
33872
|
+
* @return {string}
|
|
33873
|
+
*/
|
|
33874
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.getPipelineId = function() {
|
|
33875
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
33876
|
+
};
|
|
33877
|
+
|
|
33878
|
+
|
|
33879
|
+
/**
|
|
33880
|
+
* @param {string} value
|
|
33881
|
+
* @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
|
|
33882
|
+
*/
|
|
33883
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.setPipelineId = function(value) {
|
|
33884
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
33885
|
+
};
|
|
33886
|
+
|
|
33887
|
+
|
|
33888
|
+
/**
|
|
33889
|
+
* optional string pipeline_version_id = 13;
|
|
33890
|
+
* @return {string}
|
|
33891
|
+
*/
|
|
33892
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.getPipelineVersionId = function() {
|
|
33893
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
33894
|
+
};
|
|
33895
|
+
|
|
33896
|
+
|
|
33897
|
+
/**
|
|
33898
|
+
* @param {string} value
|
|
33899
|
+
* @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
|
|
33900
|
+
*/
|
|
33901
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.setPipelineVersionId = function(value) {
|
|
33902
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
33903
|
+
};
|
|
33904
|
+
|
|
33905
|
+
|
|
33906
|
+
/**
|
|
33907
|
+
* optional string pipeline_version_run_id = 14;
|
|
33908
|
+
* @return {string}
|
|
33909
|
+
*/
|
|
33910
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.getPipelineVersionRunId = function() {
|
|
33911
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
33912
|
+
};
|
|
33913
|
+
|
|
33914
|
+
|
|
33915
|
+
/**
|
|
33916
|
+
* @param {string} value
|
|
33917
|
+
* @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
|
|
33918
|
+
*/
|
|
33919
|
+
proto.clarifai.api.StreamLogEntriesRequest.prototype.setPipelineVersionRunId = function(value) {
|
|
33920
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
33921
|
+
};
|
|
33922
|
+
|
|
33923
|
+
|
|
33722
33924
|
|
|
33723
33925
|
|
|
33724
33926
|
|
|
@@ -86203,6 +86405,307 @@ proto.clarifai.api.PostRunnersRequest.prototype.setComputeClusterId = function(v
|
|
|
86203
86405
|
|
|
86204
86406
|
|
|
86205
86407
|
|
|
86408
|
+
/**
|
|
86409
|
+
* List of repeated fields within this message type.
|
|
86410
|
+
* @private {!Array<number>}
|
|
86411
|
+
* @const
|
|
86412
|
+
*/
|
|
86413
|
+
proto.clarifai.api.PatchRunnersRequest.repeatedFields_ = [3];
|
|
86414
|
+
|
|
86415
|
+
|
|
86416
|
+
|
|
86417
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
86418
|
+
/**
|
|
86419
|
+
* Creates an object representation of this proto.
|
|
86420
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
86421
|
+
* Optional fields that are not set will be set to undefined.
|
|
86422
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
86423
|
+
* For the list of reserved names please see:
|
|
86424
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
86425
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
86426
|
+
* JSPB instance for transitional soy proto support:
|
|
86427
|
+
* http://goto/soy-param-migration
|
|
86428
|
+
* @return {!Object}
|
|
86429
|
+
*/
|
|
86430
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.toObject = function(opt_includeInstance) {
|
|
86431
|
+
return proto.clarifai.api.PatchRunnersRequest.toObject(opt_includeInstance, this);
|
|
86432
|
+
};
|
|
86433
|
+
|
|
86434
|
+
|
|
86435
|
+
/**
|
|
86436
|
+
* Static version of the {@see toObject} method.
|
|
86437
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
86438
|
+
* the JSPB instance for transitional soy proto support:
|
|
86439
|
+
* http://goto/soy-param-migration
|
|
86440
|
+
* @param {!proto.clarifai.api.PatchRunnersRequest} msg The msg instance to transform.
|
|
86441
|
+
* @return {!Object}
|
|
86442
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
86443
|
+
*/
|
|
86444
|
+
proto.clarifai.api.PatchRunnersRequest.toObject = function(includeInstance, msg) {
|
|
86445
|
+
var f, obj = {
|
|
86446
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
86447
|
+
nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
86448
|
+
runnersList: jspb.Message.toObjectList(msg.getRunnersList(),
|
|
86449
|
+
proto_clarifai_api_resources_pb.Runner.toObject, includeInstance),
|
|
86450
|
+
computeClusterId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
86451
|
+
action: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
86452
|
+
};
|
|
86453
|
+
|
|
86454
|
+
if (includeInstance) {
|
|
86455
|
+
obj.$jspbMessageInstance = msg;
|
|
86456
|
+
}
|
|
86457
|
+
return obj;
|
|
86458
|
+
};
|
|
86459
|
+
}
|
|
86460
|
+
|
|
86461
|
+
|
|
86462
|
+
/**
|
|
86463
|
+
* Deserializes binary data (in protobuf wire format).
|
|
86464
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
86465
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest}
|
|
86466
|
+
*/
|
|
86467
|
+
proto.clarifai.api.PatchRunnersRequest.deserializeBinary = function(bytes) {
|
|
86468
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
86469
|
+
var msg = new proto.clarifai.api.PatchRunnersRequest;
|
|
86470
|
+
return proto.clarifai.api.PatchRunnersRequest.deserializeBinaryFromReader(msg, reader);
|
|
86471
|
+
};
|
|
86472
|
+
|
|
86473
|
+
|
|
86474
|
+
/**
|
|
86475
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
86476
|
+
* given reader into the given message object.
|
|
86477
|
+
* @param {!proto.clarifai.api.PatchRunnersRequest} msg The message object to deserialize into.
|
|
86478
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
86479
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest}
|
|
86480
|
+
*/
|
|
86481
|
+
proto.clarifai.api.PatchRunnersRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
86482
|
+
while (reader.nextField()) {
|
|
86483
|
+
if (reader.isEndGroup()) {
|
|
86484
|
+
break;
|
|
86485
|
+
}
|
|
86486
|
+
var field = reader.getFieldNumber();
|
|
86487
|
+
switch (field) {
|
|
86488
|
+
case 1:
|
|
86489
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
86490
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
86491
|
+
msg.setUserAppId(value);
|
|
86492
|
+
break;
|
|
86493
|
+
case 2:
|
|
86494
|
+
var value = /** @type {string} */ (reader.readString());
|
|
86495
|
+
msg.setNodepoolId(value);
|
|
86496
|
+
break;
|
|
86497
|
+
case 3:
|
|
86498
|
+
var value = new proto_clarifai_api_resources_pb.Runner;
|
|
86499
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.Runner.deserializeBinaryFromReader);
|
|
86500
|
+
msg.addRunners(value);
|
|
86501
|
+
break;
|
|
86502
|
+
case 4:
|
|
86503
|
+
var value = /** @type {string} */ (reader.readString());
|
|
86504
|
+
msg.setComputeClusterId(value);
|
|
86505
|
+
break;
|
|
86506
|
+
case 5:
|
|
86507
|
+
var value = /** @type {string} */ (reader.readString());
|
|
86508
|
+
msg.setAction(value);
|
|
86509
|
+
break;
|
|
86510
|
+
default:
|
|
86511
|
+
reader.skipField();
|
|
86512
|
+
break;
|
|
86513
|
+
}
|
|
86514
|
+
}
|
|
86515
|
+
return msg;
|
|
86516
|
+
};
|
|
86517
|
+
|
|
86518
|
+
|
|
86519
|
+
/**
|
|
86520
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
86521
|
+
* @return {!Uint8Array}
|
|
86522
|
+
*/
|
|
86523
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.serializeBinary = function() {
|
|
86524
|
+
var writer = new jspb.BinaryWriter();
|
|
86525
|
+
proto.clarifai.api.PatchRunnersRequest.serializeBinaryToWriter(this, writer);
|
|
86526
|
+
return writer.getResultBuffer();
|
|
86527
|
+
};
|
|
86528
|
+
|
|
86529
|
+
|
|
86530
|
+
/**
|
|
86531
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
86532
|
+
* format), writing to the given BinaryWriter.
|
|
86533
|
+
* @param {!proto.clarifai.api.PatchRunnersRequest} message
|
|
86534
|
+
* @param {!jspb.BinaryWriter} writer
|
|
86535
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
86536
|
+
*/
|
|
86537
|
+
proto.clarifai.api.PatchRunnersRequest.serializeBinaryToWriter = function(message, writer) {
|
|
86538
|
+
var f = undefined;
|
|
86539
|
+
f = message.getUserAppId();
|
|
86540
|
+
if (f != null) {
|
|
86541
|
+
writer.writeMessage(
|
|
86542
|
+
1,
|
|
86543
|
+
f,
|
|
86544
|
+
proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
|
|
86545
|
+
);
|
|
86546
|
+
}
|
|
86547
|
+
f = message.getNodepoolId();
|
|
86548
|
+
if (f.length > 0) {
|
|
86549
|
+
writer.writeString(
|
|
86550
|
+
2,
|
|
86551
|
+
f
|
|
86552
|
+
);
|
|
86553
|
+
}
|
|
86554
|
+
f = message.getRunnersList();
|
|
86555
|
+
if (f.length > 0) {
|
|
86556
|
+
writer.writeRepeatedMessage(
|
|
86557
|
+
3,
|
|
86558
|
+
f,
|
|
86559
|
+
proto_clarifai_api_resources_pb.Runner.serializeBinaryToWriter
|
|
86560
|
+
);
|
|
86561
|
+
}
|
|
86562
|
+
f = message.getComputeClusterId();
|
|
86563
|
+
if (f.length > 0) {
|
|
86564
|
+
writer.writeString(
|
|
86565
|
+
4,
|
|
86566
|
+
f
|
|
86567
|
+
);
|
|
86568
|
+
}
|
|
86569
|
+
f = message.getAction();
|
|
86570
|
+
if (f.length > 0) {
|
|
86571
|
+
writer.writeString(
|
|
86572
|
+
5,
|
|
86573
|
+
f
|
|
86574
|
+
);
|
|
86575
|
+
}
|
|
86576
|
+
};
|
|
86577
|
+
|
|
86578
|
+
|
|
86579
|
+
/**
|
|
86580
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
86581
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
86582
|
+
*/
|
|
86583
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.getUserAppId = function() {
|
|
86584
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
|
|
86585
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
86586
|
+
};
|
|
86587
|
+
|
|
86588
|
+
|
|
86589
|
+
/**
|
|
86590
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
86591
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86592
|
+
*/
|
|
86593
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.setUserAppId = function(value) {
|
|
86594
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
86595
|
+
};
|
|
86596
|
+
|
|
86597
|
+
|
|
86598
|
+
/**
|
|
86599
|
+
* Clears the message field making it undefined.
|
|
86600
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86601
|
+
*/
|
|
86602
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.clearUserAppId = function() {
|
|
86603
|
+
return this.setUserAppId(undefined);
|
|
86604
|
+
};
|
|
86605
|
+
|
|
86606
|
+
|
|
86607
|
+
/**
|
|
86608
|
+
* Returns whether this field is set.
|
|
86609
|
+
* @return {boolean}
|
|
86610
|
+
*/
|
|
86611
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.hasUserAppId = function() {
|
|
86612
|
+
return jspb.Message.getField(this, 1) != null;
|
|
86613
|
+
};
|
|
86614
|
+
|
|
86615
|
+
|
|
86616
|
+
/**
|
|
86617
|
+
* optional string nodepool_id = 2;
|
|
86618
|
+
* @return {string}
|
|
86619
|
+
*/
|
|
86620
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.getNodepoolId = function() {
|
|
86621
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
86622
|
+
};
|
|
86623
|
+
|
|
86624
|
+
|
|
86625
|
+
/**
|
|
86626
|
+
* @param {string} value
|
|
86627
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86628
|
+
*/
|
|
86629
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.setNodepoolId = function(value) {
|
|
86630
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
86631
|
+
};
|
|
86632
|
+
|
|
86633
|
+
|
|
86634
|
+
/**
|
|
86635
|
+
* repeated Runner runners = 3;
|
|
86636
|
+
* @return {!Array<!proto.clarifai.api.Runner>}
|
|
86637
|
+
*/
|
|
86638
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.getRunnersList = function() {
|
|
86639
|
+
return /** @type{!Array<!proto.clarifai.api.Runner>} */ (
|
|
86640
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Runner, 3));
|
|
86641
|
+
};
|
|
86642
|
+
|
|
86643
|
+
|
|
86644
|
+
/**
|
|
86645
|
+
* @param {!Array<!proto.clarifai.api.Runner>} value
|
|
86646
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86647
|
+
*/
|
|
86648
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.setRunnersList = function(value) {
|
|
86649
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
86650
|
+
};
|
|
86651
|
+
|
|
86652
|
+
|
|
86653
|
+
/**
|
|
86654
|
+
* @param {!proto.clarifai.api.Runner=} opt_value
|
|
86655
|
+
* @param {number=} opt_index
|
|
86656
|
+
* @return {!proto.clarifai.api.Runner}
|
|
86657
|
+
*/
|
|
86658
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.addRunners = function(opt_value, opt_index) {
|
|
86659
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Runner, opt_index);
|
|
86660
|
+
};
|
|
86661
|
+
|
|
86662
|
+
|
|
86663
|
+
/**
|
|
86664
|
+
* Clears the list making it empty but non-null.
|
|
86665
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86666
|
+
*/
|
|
86667
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.clearRunnersList = function() {
|
|
86668
|
+
return this.setRunnersList([]);
|
|
86669
|
+
};
|
|
86670
|
+
|
|
86671
|
+
|
|
86672
|
+
/**
|
|
86673
|
+
* optional string compute_cluster_id = 4;
|
|
86674
|
+
* @return {string}
|
|
86675
|
+
*/
|
|
86676
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.getComputeClusterId = function() {
|
|
86677
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
86678
|
+
};
|
|
86679
|
+
|
|
86680
|
+
|
|
86681
|
+
/**
|
|
86682
|
+
* @param {string} value
|
|
86683
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86684
|
+
*/
|
|
86685
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.setComputeClusterId = function(value) {
|
|
86686
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
86687
|
+
};
|
|
86688
|
+
|
|
86689
|
+
|
|
86690
|
+
/**
|
|
86691
|
+
* optional string action = 5;
|
|
86692
|
+
* @return {string}
|
|
86693
|
+
*/
|
|
86694
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.getAction = function() {
|
|
86695
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
86696
|
+
};
|
|
86697
|
+
|
|
86698
|
+
|
|
86699
|
+
/**
|
|
86700
|
+
* @param {string} value
|
|
86701
|
+
* @return {!proto.clarifai.api.PatchRunnersRequest} returns this
|
|
86702
|
+
*/
|
|
86703
|
+
proto.clarifai.api.PatchRunnersRequest.prototype.setAction = function(value) {
|
|
86704
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
86705
|
+
};
|
|
86706
|
+
|
|
86707
|
+
|
|
86708
|
+
|
|
86206
86709
|
/**
|
|
86207
86710
|
* List of repeated fields within this message type.
|
|
86208
86711
|
* @private {!Array<number>}
|