clarifai-web-grpc 11.10.2 → 11.10.4
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 +45 -160
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +212 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +45 -160
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +212 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +8 -31
- package/proto/clarifai/api/resources_pb.js +59 -185
- 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 +30 -0
- package/proto/clarifai/api/service_pb.js +263 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
11.10.
|
|
1
|
+
11.10.4
|
|
@@ -143,7 +143,6 @@ goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global);
|
|
|
143
143
|
goog.exportSymbol('proto.clarifai.api.EvaluationMetricValue', null, global);
|
|
144
144
|
goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global);
|
|
145
145
|
goog.exportSymbol('proto.clarifai.api.EventType', null, global);
|
|
146
|
-
goog.exportSymbol('proto.clarifai.api.ExpirationAction', null, global);
|
|
147
146
|
goog.exportSymbol('proto.clarifai.api.ExtendedMetrics', null, global);
|
|
148
147
|
goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global);
|
|
149
148
|
goog.exportSymbol('proto.clarifai.api.Filter', null, global);
|
|
@@ -187,7 +186,6 @@ goog.exportSymbol('proto.clarifai.api.LabelCount', null, global);
|
|
|
187
186
|
goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
|
|
188
187
|
goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
|
|
189
188
|
goog.exportSymbol('proto.clarifai.api.LayerShape', null, global);
|
|
190
|
-
goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global);
|
|
191
189
|
goog.exportSymbol('proto.clarifai.api.LicenseType', null, global);
|
|
192
190
|
goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
|
|
193
191
|
goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
|
|
@@ -300,7 +298,6 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggType', null, global);
|
|
|
300
298
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregate', null, global);
|
|
301
299
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateQuery', null, global);
|
|
302
300
|
goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global);
|
|
303
|
-
goog.exportSymbol('proto.clarifai.api.StepSecretConfig', null, global);
|
|
304
301
|
goog.exportSymbol('proto.clarifai.api.Task', null, global);
|
|
305
302
|
goog.exportSymbol('proto.clarifai.api.Task.TaskPriority', null, global);
|
|
306
303
|
goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global);
|
|
@@ -5641,27 +5638,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
5641
5638
|
*/
|
|
5642
5639
|
proto.clarifai.api.PipelineVersionConfig.displayName = 'proto.clarifai.api.PipelineVersionConfig';
|
|
5643
5640
|
}
|
|
5644
|
-
/**
|
|
5645
|
-
* Generated by JsPbCodeGenerator.
|
|
5646
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
5647
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
5648
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
5649
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
5650
|
-
* valid.
|
|
5651
|
-
* @extends {jspb.Message}
|
|
5652
|
-
* @constructor
|
|
5653
|
-
*/
|
|
5654
|
-
proto.clarifai.api.StepSecretConfig = function (opt_data) {
|
|
5655
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
5656
|
-
};
|
|
5657
|
-
goog.inherits(proto.clarifai.api.StepSecretConfig, jspb.Message);
|
|
5658
|
-
if (goog.DEBUG && !COMPILED) {
|
|
5659
|
-
/**
|
|
5660
|
-
* @public
|
|
5661
|
-
* @override
|
|
5662
|
-
*/
|
|
5663
|
-
proto.clarifai.api.StepSecretConfig.displayName = 'proto.clarifai.api.StepSecretConfig';
|
|
5664
|
-
}
|
|
5665
5641
|
/**
|
|
5666
5642
|
* Generated by JsPbCodeGenerator.
|
|
5667
5643
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -12894,7 +12870,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
12894
12870
|
floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 22, 0.0),
|
|
12895
12871
|
bytesValue: msg.getBytesValue_asB64(),
|
|
12896
12872
|
boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
|
|
12897
|
-
stringValue: jspb.Message.getFieldWithDefault(msg, 25, "")
|
|
12873
|
+
stringValue: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
12874
|
+
structValue: (f = msg.getStructValue()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
12898
12875
|
};
|
|
12899
12876
|
if (includeInstance) {
|
|
12900
12877
|
obj.$jspbMessageInstance = msg;
|
|
@@ -13036,6 +13013,11 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
13036
13013
|
var value = /** @type {string} */ (reader.readString());
|
|
13037
13014
|
msg.setStringValue(value);
|
|
13038
13015
|
break;
|
|
13016
|
+
case 26:
|
|
13017
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
13018
|
+
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
13019
|
+
msg.setStructValue(value);
|
|
13020
|
+
break;
|
|
13039
13021
|
default:
|
|
13040
13022
|
reader.skipField();
|
|
13041
13023
|
break;
|
|
@@ -13153,6 +13135,10 @@ proto.clarifai.api.Data.serializeBinaryToWriter = function (message, writer) {
|
|
|
13153
13135
|
if (f.length > 0) {
|
|
13154
13136
|
writer.writeString(25, f);
|
|
13155
13137
|
}
|
|
13138
|
+
f = message.getStructValue();
|
|
13139
|
+
if (f != null) {
|
|
13140
|
+
writer.writeMessage(26, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
13141
|
+
}
|
|
13156
13142
|
};
|
|
13157
13143
|
/**
|
|
13158
13144
|
* optional Image image = 1;
|
|
@@ -13757,6 +13743,34 @@ proto.clarifai.api.Data.prototype.getStringValue = function () {
|
|
|
13757
13743
|
proto.clarifai.api.Data.prototype.setStringValue = function (value) {
|
|
13758
13744
|
return jspb.Message.setProto3StringField(this, 25, value);
|
|
13759
13745
|
};
|
|
13746
|
+
/**
|
|
13747
|
+
* optional google.protobuf.Struct struct_value = 26;
|
|
13748
|
+
* @return {?proto.google.protobuf.Struct}
|
|
13749
|
+
*/
|
|
13750
|
+
proto.clarifai.api.Data.prototype.getStructValue = function () {
|
|
13751
|
+
return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 26));
|
|
13752
|
+
};
|
|
13753
|
+
/**
|
|
13754
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
13755
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
13756
|
+
*/
|
|
13757
|
+
proto.clarifai.api.Data.prototype.setStructValue = function (value) {
|
|
13758
|
+
return jspb.Message.setWrapperField(this, 26, value);
|
|
13759
|
+
};
|
|
13760
|
+
/**
|
|
13761
|
+
* Clears the message field making it undefined.
|
|
13762
|
+
* @return {!proto.clarifai.api.Data} returns this
|
|
13763
|
+
*/
|
|
13764
|
+
proto.clarifai.api.Data.prototype.clearStructValue = function () {
|
|
13765
|
+
return this.setStructValue(undefined);
|
|
13766
|
+
};
|
|
13767
|
+
/**
|
|
13768
|
+
* Returns whether this field is set.
|
|
13769
|
+
* @return {boolean}
|
|
13770
|
+
*/
|
|
13771
|
+
proto.clarifai.api.Data.prototype.hasStructValue = function () {
|
|
13772
|
+
return jspb.Message.getField(this, 26) != null;
|
|
13773
|
+
};
|
|
13760
13774
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13761
13775
|
/**
|
|
13762
13776
|
* Creates an object representation of this proto.
|
|
@@ -68252,7 +68266,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
68252
68266
|
*/
|
|
68253
68267
|
proto.clarifai.api.PipelineVersionConfig.toObject = function (includeInstance, msg) {
|
|
68254
68268
|
var f, obj = {
|
|
68255
|
-
stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.
|
|
68269
|
+
stepVersionSecretsMap: (f = msg.getStepVersionSecretsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Struct.toObject) : []
|
|
68256
68270
|
};
|
|
68257
68271
|
if (includeInstance) {
|
|
68258
68272
|
obj.$jspbMessageInstance = msg;
|
|
@@ -68287,7 +68301,7 @@ proto.clarifai.api.PipelineVersionConfig.deserializeBinaryFromReader = function
|
|
|
68287
68301
|
case 1:
|
|
68288
68302
|
var value = msg.getStepVersionSecretsMap();
|
|
68289
68303
|
reader.readMessage(value, function (message, reader) {
|
|
68290
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.
|
|
68304
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Struct.deserializeBinaryFromReader, "", new proto.google.protobuf.Struct());
|
|
68291
68305
|
});
|
|
68292
68306
|
break;
|
|
68293
68307
|
default:
|
|
@@ -68317,17 +68331,17 @@ proto.clarifai.api.PipelineVersionConfig.serializeBinaryToWriter = function (mes
|
|
|
68317
68331
|
var f = undefined;
|
|
68318
68332
|
f = message.getStepVersionSecretsMap(true);
|
|
68319
68333
|
if (f && f.getLength() > 0) {
|
|
68320
|
-
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.
|
|
68334
|
+
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Struct.serializeBinaryToWriter);
|
|
68321
68335
|
}
|
|
68322
68336
|
};
|
|
68323
68337
|
/**
|
|
68324
|
-
* map<string,
|
|
68338
|
+
* map<string, google.protobuf.Struct> step_version_secrets = 1;
|
|
68325
68339
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
68326
68340
|
* empty, instead returning `undefined`
|
|
68327
|
-
* @return {!jspb.Map<string,!proto.
|
|
68341
|
+
* @return {!jspb.Map<string,!proto.google.protobuf.Struct>}
|
|
68328
68342
|
*/
|
|
68329
68343
|
proto.clarifai.api.PipelineVersionConfig.prototype.getStepVersionSecretsMap = function (opt_noLazyCreate) {
|
|
68330
|
-
return /** @type {!jspb.Map<string,!proto.
|
|
68344
|
+
return /** @type {!jspb.Map<string,!proto.google.protobuf.Struct>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, proto.google.protobuf.Struct));
|
|
68331
68345
|
};
|
|
68332
68346
|
/**
|
|
68333
68347
|
* Clears values from the map. The map will be non-null.
|
|
@@ -68337,118 +68351,6 @@ proto.clarifai.api.PipelineVersionConfig.prototype.clearStepVersionSecretsMap =
|
|
|
68337
68351
|
this.getStepVersionSecretsMap().clear();
|
|
68338
68352
|
return this;
|
|
68339
68353
|
};
|
|
68340
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68341
|
-
/**
|
|
68342
|
-
* Creates an object representation of this proto.
|
|
68343
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
68344
|
-
* Optional fields that are not set will be set to undefined.
|
|
68345
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
68346
|
-
* For the list of reserved names please see:
|
|
68347
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68348
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
68349
|
-
* JSPB instance for transitional soy proto support:
|
|
68350
|
-
* http://goto/soy-param-migration
|
|
68351
|
-
* @return {!Object}
|
|
68352
|
-
*/
|
|
68353
|
-
proto.clarifai.api.StepSecretConfig.prototype.toObject = function (opt_includeInstance) {
|
|
68354
|
-
return proto.clarifai.api.StepSecretConfig.toObject(opt_includeInstance, this);
|
|
68355
|
-
};
|
|
68356
|
-
/**
|
|
68357
|
-
* Static version of the {@see toObject} method.
|
|
68358
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
68359
|
-
* the JSPB instance for transitional soy proto support:
|
|
68360
|
-
* http://goto/soy-param-migration
|
|
68361
|
-
* @param {!proto.clarifai.api.StepSecretConfig} msg The msg instance to transform.
|
|
68362
|
-
* @return {!Object}
|
|
68363
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68364
|
-
*/
|
|
68365
|
-
proto.clarifai.api.StepSecretConfig.toObject = function (includeInstance, msg) {
|
|
68366
|
-
var f, obj = {
|
|
68367
|
-
secretsMap: (f = msg.getSecretsMap()) ? f.toObject(includeInstance, undefined) : []
|
|
68368
|
-
};
|
|
68369
|
-
if (includeInstance) {
|
|
68370
|
-
obj.$jspbMessageInstance = msg;
|
|
68371
|
-
}
|
|
68372
|
-
return obj;
|
|
68373
|
-
};
|
|
68374
|
-
}
|
|
68375
|
-
/**
|
|
68376
|
-
* Deserializes binary data (in protobuf wire format).
|
|
68377
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
68378
|
-
* @return {!proto.clarifai.api.StepSecretConfig}
|
|
68379
|
-
*/
|
|
68380
|
-
proto.clarifai.api.StepSecretConfig.deserializeBinary = function (bytes) {
|
|
68381
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
68382
|
-
var msg = new proto.clarifai.api.StepSecretConfig;
|
|
68383
|
-
return proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader(msg, reader);
|
|
68384
|
-
};
|
|
68385
|
-
/**
|
|
68386
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
68387
|
-
* given reader into the given message object.
|
|
68388
|
-
* @param {!proto.clarifai.api.StepSecretConfig} msg The message object to deserialize into.
|
|
68389
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
68390
|
-
* @return {!proto.clarifai.api.StepSecretConfig}
|
|
68391
|
-
*/
|
|
68392
|
-
proto.clarifai.api.StepSecretConfig.deserializeBinaryFromReader = function (msg, reader) {
|
|
68393
|
-
while (reader.nextField()) {
|
|
68394
|
-
if (reader.isEndGroup()) {
|
|
68395
|
-
break;
|
|
68396
|
-
}
|
|
68397
|
-
var field = reader.getFieldNumber();
|
|
68398
|
-
switch (field) {
|
|
68399
|
-
case 1:
|
|
68400
|
-
var value = msg.getSecretsMap();
|
|
68401
|
-
reader.readMessage(value, function (message, reader) {
|
|
68402
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
68403
|
-
});
|
|
68404
|
-
break;
|
|
68405
|
-
default:
|
|
68406
|
-
reader.skipField();
|
|
68407
|
-
break;
|
|
68408
|
-
}
|
|
68409
|
-
}
|
|
68410
|
-
return msg;
|
|
68411
|
-
};
|
|
68412
|
-
/**
|
|
68413
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
68414
|
-
* @return {!Uint8Array}
|
|
68415
|
-
*/
|
|
68416
|
-
proto.clarifai.api.StepSecretConfig.prototype.serializeBinary = function () {
|
|
68417
|
-
var writer = new jspb.BinaryWriter();
|
|
68418
|
-
proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter(this, writer);
|
|
68419
|
-
return writer.getResultBuffer();
|
|
68420
|
-
};
|
|
68421
|
-
/**
|
|
68422
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
68423
|
-
* format), writing to the given BinaryWriter.
|
|
68424
|
-
* @param {!proto.clarifai.api.StepSecretConfig} message
|
|
68425
|
-
* @param {!jspb.BinaryWriter} writer
|
|
68426
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
68427
|
-
*/
|
|
68428
|
-
proto.clarifai.api.StepSecretConfig.serializeBinaryToWriter = function (message, writer) {
|
|
68429
|
-
var f = undefined;
|
|
68430
|
-
f = message.getSecretsMap(true);
|
|
68431
|
-
if (f && f.getLength() > 0) {
|
|
68432
|
-
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
68433
|
-
}
|
|
68434
|
-
};
|
|
68435
|
-
/**
|
|
68436
|
-
* map<string, string> secrets = 1;
|
|
68437
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
68438
|
-
* empty, instead returning `undefined`
|
|
68439
|
-
* @return {!jspb.Map<string,string>}
|
|
68440
|
-
*/
|
|
68441
|
-
proto.clarifai.api.StepSecretConfig.prototype.getSecretsMap = function (opt_noLazyCreate) {
|
|
68442
|
-
return /** @type {!jspb.Map<string,string>} */ (jspb.Message.getMapField(this, 1, opt_noLazyCreate, null));
|
|
68443
|
-
};
|
|
68444
|
-
/**
|
|
68445
|
-
* Clears values from the map. The map will be non-null.
|
|
68446
|
-
* @return {!proto.clarifai.api.StepSecretConfig} returns this
|
|
68447
|
-
*/
|
|
68448
|
-
proto.clarifai.api.StepSecretConfig.prototype.clearSecretsMap = function () {
|
|
68449
|
-
this.getSecretsMap().clear();
|
|
68450
|
-
return this;
|
|
68451
|
-
};
|
|
68452
68354
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68453
68355
|
/**
|
|
68454
68356
|
* Creates an object representation of this proto.
|
|
@@ -71754,23 +71656,6 @@ proto.clarifai.api.DatasetVersionExportFormat = {
|
|
|
71754
71656
|
CLARIFAI_DATA_JSON: 3,
|
|
71755
71657
|
COCO: 2
|
|
71756
71658
|
};
|
|
71757
|
-
/**
|
|
71758
|
-
* @enum {number}
|
|
71759
|
-
*/
|
|
71760
|
-
proto.clarifai.api.ExpirationAction = {
|
|
71761
|
-
EXPIRATION_ACTION_NOT_SET: 0,
|
|
71762
|
-
DELAY: 1,
|
|
71763
|
-
EXPIRY: 2
|
|
71764
|
-
};
|
|
71765
|
-
/**
|
|
71766
|
-
* @enum {number}
|
|
71767
|
-
*/
|
|
71768
|
-
proto.clarifai.api.LicenseScope = {
|
|
71769
|
-
LICENSE_SCOPE_NOT_SET: 0,
|
|
71770
|
-
PREDICT: 1,
|
|
71771
|
-
TRAIN: 2,
|
|
71772
|
-
SEARCH: 3
|
|
71773
|
-
};
|
|
71774
71659
|
/**
|
|
71775
71660
|
* @enum {number}
|
|
71776
71661
|
*/
|
|
@@ -9768,6 +9768,48 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteComputeClusters =
|
|
|
9768
9768
|
return this.client_.unaryCall(this.hostname_ +
|
|
9769
9769
|
'/clarifai.api.V2/DeleteComputeClusters', request, metadata || {}, methodDescriptor_V2_DeleteComputeClusters);
|
|
9770
9770
|
};
|
|
9771
|
+
/**
|
|
9772
|
+
* @const
|
|
9773
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
9774
|
+
* !proto.clarifai.api.PatchComputeClustersRequest,
|
|
9775
|
+
* !proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9776
|
+
*/
|
|
9777
|
+
const methodDescriptor_V2_PatchComputeClusters = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchComputeClusters', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchComputeClustersRequest, proto.clarifai.api.MultiComputeClusterResponse,
|
|
9778
|
+
/**
|
|
9779
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request
|
|
9780
|
+
* @return {!Uint8Array}
|
|
9781
|
+
*/
|
|
9782
|
+
function (request) {
|
|
9783
|
+
return request.serializeBinary();
|
|
9784
|
+
}, proto.clarifai.api.MultiComputeClusterResponse.deserializeBinary);
|
|
9785
|
+
/**
|
|
9786
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request The
|
|
9787
|
+
* request proto
|
|
9788
|
+
* @param {?Object<string, string>} metadata User defined
|
|
9789
|
+
* call metadata
|
|
9790
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiComputeClusterResponse)}
|
|
9791
|
+
* callback The callback function(error, response)
|
|
9792
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiComputeClusterResponse>|undefined}
|
|
9793
|
+
* The XHR Node Readable Stream
|
|
9794
|
+
*/
|
|
9795
|
+
proto.clarifai.api.V2Client.prototype.patchComputeClusters =
|
|
9796
|
+
function (request, metadata, callback) {
|
|
9797
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
9798
|
+
'/clarifai.api.V2/PatchComputeClusters', request, metadata || {}, methodDescriptor_V2_PatchComputeClusters, callback);
|
|
9799
|
+
};
|
|
9800
|
+
/**
|
|
9801
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} request The
|
|
9802
|
+
* request proto
|
|
9803
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
9804
|
+
* call metadata
|
|
9805
|
+
* @return {!Promise<!proto.clarifai.api.MultiComputeClusterResponse>}
|
|
9806
|
+
* Promise that resolves to the response
|
|
9807
|
+
*/
|
|
9808
|
+
proto.clarifai.api.V2PromiseClient.prototype.patchComputeClusters =
|
|
9809
|
+
function (request, metadata) {
|
|
9810
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
9811
|
+
'/clarifai.api.V2/PatchComputeClusters', request, metadata || {}, methodDescriptor_V2_PatchComputeClusters);
|
|
9812
|
+
};
|
|
9771
9813
|
/**
|
|
9772
9814
|
* @const
|
|
9773
9815
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -305,6 +305,7 @@ goog.exportSymbol('proto.clarifai.api.PatchAppsIdsRequest', null, global);
|
|
|
305
305
|
goog.exportSymbol('proto.clarifai.api.PatchAppsRequest', null, global);
|
|
306
306
|
goog.exportSymbol('proto.clarifai.api.PatchCollaboratorsRequest', null, global);
|
|
307
307
|
goog.exportSymbol('proto.clarifai.api.PatchCollectorsRequest', null, global);
|
|
308
|
+
goog.exportSymbol('proto.clarifai.api.PatchComputeClustersRequest', null, global);
|
|
308
309
|
goog.exportSymbol('proto.clarifai.api.PatchConceptLanguagesRequest', null, global);
|
|
309
310
|
goog.exportSymbol('proto.clarifai.api.PatchConceptsRequest', null, global);
|
|
310
311
|
goog.exportSymbol('proto.clarifai.api.PatchDatasetVersionsRequest', null, global);
|
|
@@ -7848,6 +7849,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7848
7849
|
*/
|
|
7849
7850
|
proto.clarifai.api.PostComputeClustersRequest.displayName = 'proto.clarifai.api.PostComputeClustersRequest';
|
|
7850
7851
|
}
|
|
7852
|
+
/**
|
|
7853
|
+
* Generated by JsPbCodeGenerator.
|
|
7854
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7855
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7856
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7857
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7858
|
+
* valid.
|
|
7859
|
+
* @extends {jspb.Message}
|
|
7860
|
+
* @constructor
|
|
7861
|
+
*/
|
|
7862
|
+
proto.clarifai.api.PatchComputeClustersRequest = function (opt_data) {
|
|
7863
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchComputeClustersRequest.repeatedFields_, null);
|
|
7864
|
+
};
|
|
7865
|
+
goog.inherits(proto.clarifai.api.PatchComputeClustersRequest, jspb.Message);
|
|
7866
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7867
|
+
/**
|
|
7868
|
+
* @public
|
|
7869
|
+
* @override
|
|
7870
|
+
*/
|
|
7871
|
+
proto.clarifai.api.PatchComputeClustersRequest.displayName = 'proto.clarifai.api.PatchComputeClustersRequest';
|
|
7872
|
+
}
|
|
7851
7873
|
/**
|
|
7852
7874
|
* Generated by JsPbCodeGenerator.
|
|
7853
7875
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -77272,6 +77294,196 @@ proto.clarifai.api.PostComputeClustersRequest.prototype.addComputeClusters = fun
|
|
|
77272
77294
|
proto.clarifai.api.PostComputeClustersRequest.prototype.clearComputeClustersList = function () {
|
|
77273
77295
|
return this.setComputeClustersList([]);
|
|
77274
77296
|
};
|
|
77297
|
+
/**
|
|
77298
|
+
* List of repeated fields within this message type.
|
|
77299
|
+
* @private {!Array<number>}
|
|
77300
|
+
* @const
|
|
77301
|
+
*/
|
|
77302
|
+
proto.clarifai.api.PatchComputeClustersRequest.repeatedFields_ = [2];
|
|
77303
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
77304
|
+
/**
|
|
77305
|
+
* Creates an object representation of this proto.
|
|
77306
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
77307
|
+
* Optional fields that are not set will be set to undefined.
|
|
77308
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77309
|
+
* For the list of reserved names please see:
|
|
77310
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
77311
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
77312
|
+
* JSPB instance for transitional soy proto support:
|
|
77313
|
+
* http://goto/soy-param-migration
|
|
77314
|
+
* @return {!Object}
|
|
77315
|
+
*/
|
|
77316
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.toObject = function (opt_includeInstance) {
|
|
77317
|
+
return proto.clarifai.api.PatchComputeClustersRequest.toObject(opt_includeInstance, this);
|
|
77318
|
+
};
|
|
77319
|
+
/**
|
|
77320
|
+
* Static version of the {@see toObject} method.
|
|
77321
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
77322
|
+
* the JSPB instance for transitional soy proto support:
|
|
77323
|
+
* http://goto/soy-param-migration
|
|
77324
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} msg The msg instance to transform.
|
|
77325
|
+
* @return {!Object}
|
|
77326
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77327
|
+
*/
|
|
77328
|
+
proto.clarifai.api.PatchComputeClustersRequest.toObject = function (includeInstance, msg) {
|
|
77329
|
+
var f, obj = {
|
|
77330
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
77331
|
+
computeClustersList: jspb.Message.toObjectList(msg.getComputeClustersList(), proto_clarifai_api_resources_pb.ComputeCluster.toObject, includeInstance),
|
|
77332
|
+
action: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
77333
|
+
};
|
|
77334
|
+
if (includeInstance) {
|
|
77335
|
+
obj.$jspbMessageInstance = msg;
|
|
77336
|
+
}
|
|
77337
|
+
return obj;
|
|
77338
|
+
};
|
|
77339
|
+
}
|
|
77340
|
+
/**
|
|
77341
|
+
* Deserializes binary data (in protobuf wire format).
|
|
77342
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
77343
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest}
|
|
77344
|
+
*/
|
|
77345
|
+
proto.clarifai.api.PatchComputeClustersRequest.deserializeBinary = function (bytes) {
|
|
77346
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
77347
|
+
var msg = new proto.clarifai.api.PatchComputeClustersRequest;
|
|
77348
|
+
return proto.clarifai.api.PatchComputeClustersRequest.deserializeBinaryFromReader(msg, reader);
|
|
77349
|
+
};
|
|
77350
|
+
/**
|
|
77351
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
77352
|
+
* given reader into the given message object.
|
|
77353
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} msg The message object to deserialize into.
|
|
77354
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
77355
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest}
|
|
77356
|
+
*/
|
|
77357
|
+
proto.clarifai.api.PatchComputeClustersRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
77358
|
+
while (reader.nextField()) {
|
|
77359
|
+
if (reader.isEndGroup()) {
|
|
77360
|
+
break;
|
|
77361
|
+
}
|
|
77362
|
+
var field = reader.getFieldNumber();
|
|
77363
|
+
switch (field) {
|
|
77364
|
+
case 1:
|
|
77365
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
77366
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
77367
|
+
msg.setUserAppId(value);
|
|
77368
|
+
break;
|
|
77369
|
+
case 2:
|
|
77370
|
+
var value = new proto_clarifai_api_resources_pb.ComputeCluster;
|
|
77371
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ComputeCluster.deserializeBinaryFromReader);
|
|
77372
|
+
msg.addComputeClusters(value);
|
|
77373
|
+
break;
|
|
77374
|
+
case 3:
|
|
77375
|
+
var value = /** @type {string} */ (reader.readString());
|
|
77376
|
+
msg.setAction(value);
|
|
77377
|
+
break;
|
|
77378
|
+
default:
|
|
77379
|
+
reader.skipField();
|
|
77380
|
+
break;
|
|
77381
|
+
}
|
|
77382
|
+
}
|
|
77383
|
+
return msg;
|
|
77384
|
+
};
|
|
77385
|
+
/**
|
|
77386
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
77387
|
+
* @return {!Uint8Array}
|
|
77388
|
+
*/
|
|
77389
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.serializeBinary = function () {
|
|
77390
|
+
var writer = new jspb.BinaryWriter();
|
|
77391
|
+
proto.clarifai.api.PatchComputeClustersRequest.serializeBinaryToWriter(this, writer);
|
|
77392
|
+
return writer.getResultBuffer();
|
|
77393
|
+
};
|
|
77394
|
+
/**
|
|
77395
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
77396
|
+
* format), writing to the given BinaryWriter.
|
|
77397
|
+
* @param {!proto.clarifai.api.PatchComputeClustersRequest} message
|
|
77398
|
+
* @param {!jspb.BinaryWriter} writer
|
|
77399
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77400
|
+
*/
|
|
77401
|
+
proto.clarifai.api.PatchComputeClustersRequest.serializeBinaryToWriter = function (message, writer) {
|
|
77402
|
+
var f = undefined;
|
|
77403
|
+
f = message.getUserAppId();
|
|
77404
|
+
if (f != null) {
|
|
77405
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
77406
|
+
}
|
|
77407
|
+
f = message.getComputeClustersList();
|
|
77408
|
+
if (f.length > 0) {
|
|
77409
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.ComputeCluster.serializeBinaryToWriter);
|
|
77410
|
+
}
|
|
77411
|
+
f = message.getAction();
|
|
77412
|
+
if (f.length > 0) {
|
|
77413
|
+
writer.writeString(3, f);
|
|
77414
|
+
}
|
|
77415
|
+
};
|
|
77416
|
+
/**
|
|
77417
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
77418
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
77419
|
+
*/
|
|
77420
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getUserAppId = function () {
|
|
77421
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
77422
|
+
};
|
|
77423
|
+
/**
|
|
77424
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
77425
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77426
|
+
*/
|
|
77427
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setUserAppId = function (value) {
|
|
77428
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
77429
|
+
};
|
|
77430
|
+
/**
|
|
77431
|
+
* Clears the message field making it undefined.
|
|
77432
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77433
|
+
*/
|
|
77434
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.clearUserAppId = function () {
|
|
77435
|
+
return this.setUserAppId(undefined);
|
|
77436
|
+
};
|
|
77437
|
+
/**
|
|
77438
|
+
* Returns whether this field is set.
|
|
77439
|
+
* @return {boolean}
|
|
77440
|
+
*/
|
|
77441
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.hasUserAppId = function () {
|
|
77442
|
+
return jspb.Message.getField(this, 1) != null;
|
|
77443
|
+
};
|
|
77444
|
+
/**
|
|
77445
|
+
* repeated ComputeCluster compute_clusters = 2;
|
|
77446
|
+
* @return {!Array<!proto.clarifai.api.ComputeCluster>}
|
|
77447
|
+
*/
|
|
77448
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getComputeClustersList = function () {
|
|
77449
|
+
return /** @type{!Array<!proto.clarifai.api.ComputeCluster>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ComputeCluster, 2));
|
|
77450
|
+
};
|
|
77451
|
+
/**
|
|
77452
|
+
* @param {!Array<!proto.clarifai.api.ComputeCluster>} value
|
|
77453
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77454
|
+
*/
|
|
77455
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setComputeClustersList = function (value) {
|
|
77456
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
77457
|
+
};
|
|
77458
|
+
/**
|
|
77459
|
+
* @param {!proto.clarifai.api.ComputeCluster=} opt_value
|
|
77460
|
+
* @param {number=} opt_index
|
|
77461
|
+
* @return {!proto.clarifai.api.ComputeCluster}
|
|
77462
|
+
*/
|
|
77463
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.addComputeClusters = function (opt_value, opt_index) {
|
|
77464
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ComputeCluster, opt_index);
|
|
77465
|
+
};
|
|
77466
|
+
/**
|
|
77467
|
+
* Clears the list making it empty but non-null.
|
|
77468
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77469
|
+
*/
|
|
77470
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.clearComputeClustersList = function () {
|
|
77471
|
+
return this.setComputeClustersList([]);
|
|
77472
|
+
};
|
|
77473
|
+
/**
|
|
77474
|
+
* optional string action = 3;
|
|
77475
|
+
* @return {string}
|
|
77476
|
+
*/
|
|
77477
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.getAction = function () {
|
|
77478
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
77479
|
+
};
|
|
77480
|
+
/**
|
|
77481
|
+
* @param {string} value
|
|
77482
|
+
* @return {!proto.clarifai.api.PatchComputeClustersRequest} returns this
|
|
77483
|
+
*/
|
|
77484
|
+
proto.clarifai.api.PatchComputeClustersRequest.prototype.setAction = function (value) {
|
|
77485
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
77486
|
+
};
|
|
77275
77487
|
/**
|
|
77276
77488
|
* List of repeated fields within this message type.
|
|
77277
77489
|
* @private {!Array<number>}
|