clarifai-web-grpc 10.6.3 → 10.6.5
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 +53 -16
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +396 -2
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +53 -16
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +396 -2
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +12 -3
- package/proto/clarifai/api/resources_pb.js +61 -17
- 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 +56 -0
- package/proto/clarifai/api/service_pb.js +487 -2
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -1
|
@@ -155,6 +155,7 @@ goog.exportSymbol('proto.clarifai.api.ListInputsAddJobsRequest', null, global);
|
|
|
155
155
|
goog.exportSymbol('proto.clarifai.api.ListInputsExtractionJobsRequest', null, global);
|
|
156
156
|
goog.exportSymbol('proto.clarifai.api.ListInputsRequest', null, global);
|
|
157
157
|
goog.exportSymbol('proto.clarifai.api.ListInstalledModuleVersionsRequest', null, global);
|
|
158
|
+
goog.exportSymbol('proto.clarifai.api.ListInstanceTypesRequest', null, global);
|
|
158
159
|
goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
|
|
159
160
|
goog.exportSymbol('proto.clarifai.api.ListKnowledgeGraphsRequest', null, global);
|
|
160
161
|
goog.exportSymbol('proto.clarifai.api.ListLabelOrdersRequest', null, global);
|
|
@@ -214,6 +215,7 @@ goog.exportSymbol('proto.clarifai.api.MultiInputResponse', null, global);
|
|
|
214
215
|
goog.exportSymbol('proto.clarifai.api.MultiInputsAddJobResponse', null, global);
|
|
215
216
|
goog.exportSymbol('proto.clarifai.api.MultiInputsExtractionJobResponse', null, global);
|
|
216
217
|
goog.exportSymbol('proto.clarifai.api.MultiInstalledModuleVersionResponse', null, global);
|
|
218
|
+
goog.exportSymbol('proto.clarifai.api.MultiInstanceTypeResponse', null, global);
|
|
217
219
|
goog.exportSymbol('proto.clarifai.api.MultiKeyResponse', null, global);
|
|
218
220
|
goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global);
|
|
219
221
|
goog.exportSymbol('proto.clarifai.api.MultiLabelOrderResponse', null, global);
|
|
@@ -7422,6 +7424,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
7422
7424
|
*/
|
|
7423
7425
|
proto.clarifai.api.MultiTrainingTimeEstimateResponse.displayName = 'proto.clarifai.api.MultiTrainingTimeEstimateResponse';
|
|
7424
7426
|
}
|
|
7427
|
+
/**
|
|
7428
|
+
* Generated by JsPbCodeGenerator.
|
|
7429
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7430
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7431
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7432
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7433
|
+
* valid.
|
|
7434
|
+
* @extends {jspb.Message}
|
|
7435
|
+
* @constructor
|
|
7436
|
+
*/
|
|
7437
|
+
proto.clarifai.api.ListInstanceTypesRequest = function(opt_data) {
|
|
7438
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
7439
|
+
};
|
|
7440
|
+
goog.inherits(proto.clarifai.api.ListInstanceTypesRequest, jspb.Message);
|
|
7441
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7442
|
+
/**
|
|
7443
|
+
* @public
|
|
7444
|
+
* @override
|
|
7445
|
+
*/
|
|
7446
|
+
proto.clarifai.api.ListInstanceTypesRequest.displayName = 'proto.clarifai.api.ListInstanceTypesRequest';
|
|
7447
|
+
}
|
|
7448
|
+
/**
|
|
7449
|
+
* Generated by JsPbCodeGenerator.
|
|
7450
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
7451
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
7452
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
7453
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
7454
|
+
* valid.
|
|
7455
|
+
* @extends {jspb.Message}
|
|
7456
|
+
* @constructor
|
|
7457
|
+
*/
|
|
7458
|
+
proto.clarifai.api.MultiInstanceTypeResponse = function(opt_data) {
|
|
7459
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInstanceTypeResponse.repeatedFields_, null);
|
|
7460
|
+
};
|
|
7461
|
+
goog.inherits(proto.clarifai.api.MultiInstanceTypeResponse, jspb.Message);
|
|
7462
|
+
if (goog.DEBUG && !COMPILED) {
|
|
7463
|
+
/**
|
|
7464
|
+
* @public
|
|
7465
|
+
* @override
|
|
7466
|
+
*/
|
|
7467
|
+
proto.clarifai.api.MultiInstanceTypeResponse.displayName = 'proto.clarifai.api.MultiInstanceTypeResponse';
|
|
7468
|
+
}
|
|
7425
7469
|
/**
|
|
7426
7470
|
* Generated by JsPbCodeGenerator.
|
|
7427
7471
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -34259,7 +34303,7 @@ proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = functio
|
|
|
34259
34303
|
* @private {!Array<number>}
|
|
34260
34304
|
* @const
|
|
34261
34305
|
*/
|
|
34262
|
-
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19,8,9,17,18,21];
|
|
34306
|
+
proto.clarifai.api.ListModelsRequest.repeatedFields_ = [19,8,9,17,18,21,28];
|
|
34263
34307
|
|
|
34264
34308
|
/**
|
|
34265
34309
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -34346,7 +34390,8 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) {
|
|
|
34346
34390
|
search: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
34347
34391
|
query: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
34348
34392
|
name: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
34349
|
-
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false)
|
|
34393
|
+
filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
|
34394
|
+
modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
|
|
34350
34395
|
};
|
|
34351
34396
|
|
|
34352
34397
|
if (includeInstance) {
|
|
@@ -34488,6 +34533,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg,
|
|
|
34488
34533
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
34489
34534
|
msg.setFilterByUserId(value);
|
|
34490
34535
|
break;
|
|
34536
|
+
case 28:
|
|
34537
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34538
|
+
msg.addModelVersionIds(value);
|
|
34539
|
+
break;
|
|
34491
34540
|
default:
|
|
34492
34541
|
reader.skipField();
|
|
34493
34542
|
break;
|
|
@@ -34700,6 +34749,13 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message,
|
|
|
34700
34749
|
f
|
|
34701
34750
|
);
|
|
34702
34751
|
}
|
|
34752
|
+
f = message.getModelVersionIdsList();
|
|
34753
|
+
if (f.length > 0) {
|
|
34754
|
+
writer.writeRepeatedString(
|
|
34755
|
+
28,
|
|
34756
|
+
f
|
|
34757
|
+
);
|
|
34758
|
+
}
|
|
34703
34759
|
};
|
|
34704
34760
|
|
|
34705
34761
|
|
|
@@ -35394,6 +35450,43 @@ proto.clarifai.api.ListModelsRequest.prototype.setFilterByUserId = function(valu
|
|
|
35394
35450
|
};
|
|
35395
35451
|
|
|
35396
35452
|
|
|
35453
|
+
/**
|
|
35454
|
+
* repeated string model_version_ids = 28;
|
|
35455
|
+
* @return {!Array<string>}
|
|
35456
|
+
*/
|
|
35457
|
+
proto.clarifai.api.ListModelsRequest.prototype.getModelVersionIdsList = function() {
|
|
35458
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 28));
|
|
35459
|
+
};
|
|
35460
|
+
|
|
35461
|
+
|
|
35462
|
+
/**
|
|
35463
|
+
* @param {!Array<string>} value
|
|
35464
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
35465
|
+
*/
|
|
35466
|
+
proto.clarifai.api.ListModelsRequest.prototype.setModelVersionIdsList = function(value) {
|
|
35467
|
+
return jspb.Message.setField(this, 28, value || []);
|
|
35468
|
+
};
|
|
35469
|
+
|
|
35470
|
+
|
|
35471
|
+
/**
|
|
35472
|
+
* @param {string} value
|
|
35473
|
+
* @param {number=} opt_index
|
|
35474
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
35475
|
+
*/
|
|
35476
|
+
proto.clarifai.api.ListModelsRequest.prototype.addModelVersionIds = function(value, opt_index) {
|
|
35477
|
+
return jspb.Message.addToRepeatedField(this, 28, value, opt_index);
|
|
35478
|
+
};
|
|
35479
|
+
|
|
35480
|
+
|
|
35481
|
+
/**
|
|
35482
|
+
* Clears the list making it empty but non-null.
|
|
35483
|
+
* @return {!proto.clarifai.api.ListModelsRequest} returns this
|
|
35484
|
+
*/
|
|
35485
|
+
proto.clarifai.api.ListModelsRequest.prototype.clearModelVersionIdsList = function() {
|
|
35486
|
+
return this.setModelVersionIdsList([]);
|
|
35487
|
+
};
|
|
35488
|
+
|
|
35489
|
+
|
|
35397
35490
|
|
|
35398
35491
|
|
|
35399
35492
|
|
|
@@ -87973,6 +88066,398 @@ proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.clearTrainingTime
|
|
|
87973
88066
|
|
|
87974
88067
|
|
|
87975
88068
|
|
|
88069
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88070
|
+
/**
|
|
88071
|
+
* Creates an object representation of this proto.
|
|
88072
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88073
|
+
* Optional fields that are not set will be set to undefined.
|
|
88074
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88075
|
+
* For the list of reserved names please see:
|
|
88076
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88077
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88078
|
+
* JSPB instance for transitional soy proto support:
|
|
88079
|
+
* http://goto/soy-param-migration
|
|
88080
|
+
* @return {!Object}
|
|
88081
|
+
*/
|
|
88082
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
88083
|
+
return proto.clarifai.api.ListInstanceTypesRequest.toObject(opt_includeInstance, this);
|
|
88084
|
+
};
|
|
88085
|
+
|
|
88086
|
+
|
|
88087
|
+
/**
|
|
88088
|
+
* Static version of the {@see toObject} method.
|
|
88089
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88090
|
+
* the JSPB instance for transitional soy proto support:
|
|
88091
|
+
* http://goto/soy-param-migration
|
|
88092
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} msg The msg instance to transform.
|
|
88093
|
+
* @return {!Object}
|
|
88094
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88095
|
+
*/
|
|
88096
|
+
proto.clarifai.api.ListInstanceTypesRequest.toObject = function(includeInstance, msg) {
|
|
88097
|
+
var f, obj = {
|
|
88098
|
+
cloudProvider: (f = msg.getCloudProvider()) && proto_clarifai_api_resources_pb.CloudProvider.toObject(includeInstance, f),
|
|
88099
|
+
region: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
88100
|
+
};
|
|
88101
|
+
|
|
88102
|
+
if (includeInstance) {
|
|
88103
|
+
obj.$jspbMessageInstance = msg;
|
|
88104
|
+
}
|
|
88105
|
+
return obj;
|
|
88106
|
+
};
|
|
88107
|
+
}
|
|
88108
|
+
|
|
88109
|
+
|
|
88110
|
+
/**
|
|
88111
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88112
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88113
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest}
|
|
88114
|
+
*/
|
|
88115
|
+
proto.clarifai.api.ListInstanceTypesRequest.deserializeBinary = function(bytes) {
|
|
88116
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88117
|
+
var msg = new proto.clarifai.api.ListInstanceTypesRequest;
|
|
88118
|
+
return proto.clarifai.api.ListInstanceTypesRequest.deserializeBinaryFromReader(msg, reader);
|
|
88119
|
+
};
|
|
88120
|
+
|
|
88121
|
+
|
|
88122
|
+
/**
|
|
88123
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88124
|
+
* given reader into the given message object.
|
|
88125
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} msg The message object to deserialize into.
|
|
88126
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88127
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest}
|
|
88128
|
+
*/
|
|
88129
|
+
proto.clarifai.api.ListInstanceTypesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
88130
|
+
while (reader.nextField()) {
|
|
88131
|
+
if (reader.isEndGroup()) {
|
|
88132
|
+
break;
|
|
88133
|
+
}
|
|
88134
|
+
var field = reader.getFieldNumber();
|
|
88135
|
+
switch (field) {
|
|
88136
|
+
case 1:
|
|
88137
|
+
var value = new proto_clarifai_api_resources_pb.CloudProvider;
|
|
88138
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.CloudProvider.deserializeBinaryFromReader);
|
|
88139
|
+
msg.setCloudProvider(value);
|
|
88140
|
+
break;
|
|
88141
|
+
case 2:
|
|
88142
|
+
var value = /** @type {string} */ (reader.readString());
|
|
88143
|
+
msg.setRegion(value);
|
|
88144
|
+
break;
|
|
88145
|
+
default:
|
|
88146
|
+
reader.skipField();
|
|
88147
|
+
break;
|
|
88148
|
+
}
|
|
88149
|
+
}
|
|
88150
|
+
return msg;
|
|
88151
|
+
};
|
|
88152
|
+
|
|
88153
|
+
|
|
88154
|
+
/**
|
|
88155
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88156
|
+
* @return {!Uint8Array}
|
|
88157
|
+
*/
|
|
88158
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.serializeBinary = function() {
|
|
88159
|
+
var writer = new jspb.BinaryWriter();
|
|
88160
|
+
proto.clarifai.api.ListInstanceTypesRequest.serializeBinaryToWriter(this, writer);
|
|
88161
|
+
return writer.getResultBuffer();
|
|
88162
|
+
};
|
|
88163
|
+
|
|
88164
|
+
|
|
88165
|
+
/**
|
|
88166
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88167
|
+
* format), writing to the given BinaryWriter.
|
|
88168
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} message
|
|
88169
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88170
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88171
|
+
*/
|
|
88172
|
+
proto.clarifai.api.ListInstanceTypesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
88173
|
+
var f = undefined;
|
|
88174
|
+
f = message.getCloudProvider();
|
|
88175
|
+
if (f != null) {
|
|
88176
|
+
writer.writeMessage(
|
|
88177
|
+
1,
|
|
88178
|
+
f,
|
|
88179
|
+
proto_clarifai_api_resources_pb.CloudProvider.serializeBinaryToWriter
|
|
88180
|
+
);
|
|
88181
|
+
}
|
|
88182
|
+
f = message.getRegion();
|
|
88183
|
+
if (f.length > 0) {
|
|
88184
|
+
writer.writeString(
|
|
88185
|
+
2,
|
|
88186
|
+
f
|
|
88187
|
+
);
|
|
88188
|
+
}
|
|
88189
|
+
};
|
|
88190
|
+
|
|
88191
|
+
|
|
88192
|
+
/**
|
|
88193
|
+
* optional CloudProvider cloud_provider = 1;
|
|
88194
|
+
* @return {?proto.clarifai.api.CloudProvider}
|
|
88195
|
+
*/
|
|
88196
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.getCloudProvider = function() {
|
|
88197
|
+
return /** @type{?proto.clarifai.api.CloudProvider} */ (
|
|
88198
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.CloudProvider, 1));
|
|
88199
|
+
};
|
|
88200
|
+
|
|
88201
|
+
|
|
88202
|
+
/**
|
|
88203
|
+
* @param {?proto.clarifai.api.CloudProvider|undefined} value
|
|
88204
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
88205
|
+
*/
|
|
88206
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.setCloudProvider = function(value) {
|
|
88207
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88208
|
+
};
|
|
88209
|
+
|
|
88210
|
+
|
|
88211
|
+
/**
|
|
88212
|
+
* Clears the message field making it undefined.
|
|
88213
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
88214
|
+
*/
|
|
88215
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.clearCloudProvider = function() {
|
|
88216
|
+
return this.setCloudProvider(undefined);
|
|
88217
|
+
};
|
|
88218
|
+
|
|
88219
|
+
|
|
88220
|
+
/**
|
|
88221
|
+
* Returns whether this field is set.
|
|
88222
|
+
* @return {boolean}
|
|
88223
|
+
*/
|
|
88224
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.hasCloudProvider = function() {
|
|
88225
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88226
|
+
};
|
|
88227
|
+
|
|
88228
|
+
|
|
88229
|
+
/**
|
|
88230
|
+
* optional string region = 2;
|
|
88231
|
+
* @return {string}
|
|
88232
|
+
*/
|
|
88233
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.getRegion = function() {
|
|
88234
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
88235
|
+
};
|
|
88236
|
+
|
|
88237
|
+
|
|
88238
|
+
/**
|
|
88239
|
+
* @param {string} value
|
|
88240
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
88241
|
+
*/
|
|
88242
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.setRegion = function(value) {
|
|
88243
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
88244
|
+
};
|
|
88245
|
+
|
|
88246
|
+
|
|
88247
|
+
|
|
88248
|
+
/**
|
|
88249
|
+
* List of repeated fields within this message type.
|
|
88250
|
+
* @private {!Array<number>}
|
|
88251
|
+
* @const
|
|
88252
|
+
*/
|
|
88253
|
+
proto.clarifai.api.MultiInstanceTypeResponse.repeatedFields_ = [2];
|
|
88254
|
+
|
|
88255
|
+
|
|
88256
|
+
|
|
88257
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88258
|
+
/**
|
|
88259
|
+
* Creates an object representation of this proto.
|
|
88260
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88261
|
+
* Optional fields that are not set will be set to undefined.
|
|
88262
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88263
|
+
* For the list of reserved names please see:
|
|
88264
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88265
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88266
|
+
* JSPB instance for transitional soy proto support:
|
|
88267
|
+
* http://goto/soy-param-migration
|
|
88268
|
+
* @return {!Object}
|
|
88269
|
+
*/
|
|
88270
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
88271
|
+
return proto.clarifai.api.MultiInstanceTypeResponse.toObject(opt_includeInstance, this);
|
|
88272
|
+
};
|
|
88273
|
+
|
|
88274
|
+
|
|
88275
|
+
/**
|
|
88276
|
+
* Static version of the {@see toObject} method.
|
|
88277
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88278
|
+
* the JSPB instance for transitional soy proto support:
|
|
88279
|
+
* http://goto/soy-param-migration
|
|
88280
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} msg The msg instance to transform.
|
|
88281
|
+
* @return {!Object}
|
|
88282
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88283
|
+
*/
|
|
88284
|
+
proto.clarifai.api.MultiInstanceTypeResponse.toObject = function(includeInstance, msg) {
|
|
88285
|
+
var f, obj = {
|
|
88286
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
88287
|
+
instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(),
|
|
88288
|
+
proto_clarifai_api_resources_pb.InstanceType.toObject, includeInstance)
|
|
88289
|
+
};
|
|
88290
|
+
|
|
88291
|
+
if (includeInstance) {
|
|
88292
|
+
obj.$jspbMessageInstance = msg;
|
|
88293
|
+
}
|
|
88294
|
+
return obj;
|
|
88295
|
+
};
|
|
88296
|
+
}
|
|
88297
|
+
|
|
88298
|
+
|
|
88299
|
+
/**
|
|
88300
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88301
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88302
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse}
|
|
88303
|
+
*/
|
|
88304
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinary = function(bytes) {
|
|
88305
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88306
|
+
var msg = new proto.clarifai.api.MultiInstanceTypeResponse;
|
|
88307
|
+
return proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinaryFromReader(msg, reader);
|
|
88308
|
+
};
|
|
88309
|
+
|
|
88310
|
+
|
|
88311
|
+
/**
|
|
88312
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88313
|
+
* given reader into the given message object.
|
|
88314
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} msg The message object to deserialize into.
|
|
88315
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88316
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse}
|
|
88317
|
+
*/
|
|
88318
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
88319
|
+
while (reader.nextField()) {
|
|
88320
|
+
if (reader.isEndGroup()) {
|
|
88321
|
+
break;
|
|
88322
|
+
}
|
|
88323
|
+
var field = reader.getFieldNumber();
|
|
88324
|
+
switch (field) {
|
|
88325
|
+
case 1:
|
|
88326
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
88327
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
88328
|
+
msg.setStatus(value);
|
|
88329
|
+
break;
|
|
88330
|
+
case 2:
|
|
88331
|
+
var value = new proto_clarifai_api_resources_pb.InstanceType;
|
|
88332
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.InstanceType.deserializeBinaryFromReader);
|
|
88333
|
+
msg.addInstanceTypes(value);
|
|
88334
|
+
break;
|
|
88335
|
+
default:
|
|
88336
|
+
reader.skipField();
|
|
88337
|
+
break;
|
|
88338
|
+
}
|
|
88339
|
+
}
|
|
88340
|
+
return msg;
|
|
88341
|
+
};
|
|
88342
|
+
|
|
88343
|
+
|
|
88344
|
+
/**
|
|
88345
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88346
|
+
* @return {!Uint8Array}
|
|
88347
|
+
*/
|
|
88348
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.serializeBinary = function() {
|
|
88349
|
+
var writer = new jspb.BinaryWriter();
|
|
88350
|
+
proto.clarifai.api.MultiInstanceTypeResponse.serializeBinaryToWriter(this, writer);
|
|
88351
|
+
return writer.getResultBuffer();
|
|
88352
|
+
};
|
|
88353
|
+
|
|
88354
|
+
|
|
88355
|
+
/**
|
|
88356
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88357
|
+
* format), writing to the given BinaryWriter.
|
|
88358
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} message
|
|
88359
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88360
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88361
|
+
*/
|
|
88362
|
+
proto.clarifai.api.MultiInstanceTypeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
88363
|
+
var f = undefined;
|
|
88364
|
+
f = message.getStatus();
|
|
88365
|
+
if (f != null) {
|
|
88366
|
+
writer.writeMessage(
|
|
88367
|
+
1,
|
|
88368
|
+
f,
|
|
88369
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
88370
|
+
);
|
|
88371
|
+
}
|
|
88372
|
+
f = message.getInstanceTypesList();
|
|
88373
|
+
if (f.length > 0) {
|
|
88374
|
+
writer.writeRepeatedMessage(
|
|
88375
|
+
2,
|
|
88376
|
+
f,
|
|
88377
|
+
proto_clarifai_api_resources_pb.InstanceType.serializeBinaryToWriter
|
|
88378
|
+
);
|
|
88379
|
+
}
|
|
88380
|
+
};
|
|
88381
|
+
|
|
88382
|
+
|
|
88383
|
+
/**
|
|
88384
|
+
* optional status.Status status = 1;
|
|
88385
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
88386
|
+
*/
|
|
88387
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.getStatus = function() {
|
|
88388
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
88389
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
88390
|
+
};
|
|
88391
|
+
|
|
88392
|
+
|
|
88393
|
+
/**
|
|
88394
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
88395
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88396
|
+
*/
|
|
88397
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.setStatus = function(value) {
|
|
88398
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88399
|
+
};
|
|
88400
|
+
|
|
88401
|
+
|
|
88402
|
+
/**
|
|
88403
|
+
* Clears the message field making it undefined.
|
|
88404
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88405
|
+
*/
|
|
88406
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.clearStatus = function() {
|
|
88407
|
+
return this.setStatus(undefined);
|
|
88408
|
+
};
|
|
88409
|
+
|
|
88410
|
+
|
|
88411
|
+
/**
|
|
88412
|
+
* Returns whether this field is set.
|
|
88413
|
+
* @return {boolean}
|
|
88414
|
+
*/
|
|
88415
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.hasStatus = function() {
|
|
88416
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88417
|
+
};
|
|
88418
|
+
|
|
88419
|
+
|
|
88420
|
+
/**
|
|
88421
|
+
* repeated InstanceType instance_types = 2;
|
|
88422
|
+
* @return {!Array<!proto.clarifai.api.InstanceType>}
|
|
88423
|
+
*/
|
|
88424
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.getInstanceTypesList = function() {
|
|
88425
|
+
return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (
|
|
88426
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InstanceType, 2));
|
|
88427
|
+
};
|
|
88428
|
+
|
|
88429
|
+
|
|
88430
|
+
/**
|
|
88431
|
+
* @param {!Array<!proto.clarifai.api.InstanceType>} value
|
|
88432
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88433
|
+
*/
|
|
88434
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.setInstanceTypesList = function(value) {
|
|
88435
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
88436
|
+
};
|
|
88437
|
+
|
|
88438
|
+
|
|
88439
|
+
/**
|
|
88440
|
+
* @param {!proto.clarifai.api.InstanceType=} opt_value
|
|
88441
|
+
* @param {number=} opt_index
|
|
88442
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
88443
|
+
*/
|
|
88444
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.addInstanceTypes = function(opt_value, opt_index) {
|
|
88445
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InstanceType, opt_index);
|
|
88446
|
+
};
|
|
88447
|
+
|
|
88448
|
+
|
|
88449
|
+
/**
|
|
88450
|
+
* Clears the list making it empty but non-null.
|
|
88451
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88452
|
+
*/
|
|
88453
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.clearInstanceTypesList = function() {
|
|
88454
|
+
return this.setInstanceTypesList([]);
|
|
88455
|
+
};
|
|
88456
|
+
|
|
88457
|
+
|
|
88458
|
+
|
|
88459
|
+
|
|
88460
|
+
|
|
87976
88461
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87977
88462
|
/**
|
|
87978
88463
|
* Creates an object representation of this proto.
|
|
@@ -160,6 +160,9 @@ export enum StatusCode {
|
|
|
160
160
|
DEPLOYMENT_DOES_NOT_EXIST = 25900,
|
|
161
161
|
DEPLOYMENT_INVALID_ARGUMENT = 25901,
|
|
162
162
|
DEPLOYMENT_INVALID_REQUEST = 25902,
|
|
163
|
+
INSTANCE_TYPE_DOES_NOT_EXIST = 26000,
|
|
164
|
+
INSTANCE_TYPE_INVALID_ARGUMENT = 26001,
|
|
165
|
+
INSTANCE_TYPE_INVALID_REQUEST = 26002,
|
|
163
166
|
INPUT_DOWNLOAD_SUCCESS = 30000,
|
|
164
167
|
INPUT_DOWNLOAD_PENDING = 30001,
|
|
165
168
|
INPUT_DOWNLOAD_FAILED = 30002,
|
|
@@ -183,6 +183,9 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
183
183
|
DEPLOYMENT_DOES_NOT_EXIST: 25900,
|
|
184
184
|
DEPLOYMENT_INVALID_ARGUMENT: 25901,
|
|
185
185
|
DEPLOYMENT_INVALID_REQUEST: 25902,
|
|
186
|
+
INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
|
|
187
|
+
INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
|
|
188
|
+
INSTANCE_TYPE_INVALID_REQUEST: 26002,
|
|
186
189
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
187
190
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
188
191
|
INPUT_DOWNLOAD_FAILED: 30002,
|