clarifai-web-grpc 10.6.3 → 10.6.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 +51 -15
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +356 -0
- 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 +51 -15
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +356 -0
- 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 +11 -3
- package/proto/clarifai/api/resources_pb.js +59 -16
- 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 +50 -0
- package/proto/clarifai/api/service_pb.js +436 -0
- 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
|
|
@@ -87973,6 +88017,398 @@ proto.clarifai.api.MultiTrainingTimeEstimateResponse.prototype.clearTrainingTime
|
|
|
87973
88017
|
|
|
87974
88018
|
|
|
87975
88019
|
|
|
88020
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88021
|
+
/**
|
|
88022
|
+
* Creates an object representation of this proto.
|
|
88023
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88024
|
+
* Optional fields that are not set will be set to undefined.
|
|
88025
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88026
|
+
* For the list of reserved names please see:
|
|
88027
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88028
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88029
|
+
* JSPB instance for transitional soy proto support:
|
|
88030
|
+
* http://goto/soy-param-migration
|
|
88031
|
+
* @return {!Object}
|
|
88032
|
+
*/
|
|
88033
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
88034
|
+
return proto.clarifai.api.ListInstanceTypesRequest.toObject(opt_includeInstance, this);
|
|
88035
|
+
};
|
|
88036
|
+
|
|
88037
|
+
|
|
88038
|
+
/**
|
|
88039
|
+
* Static version of the {@see toObject} method.
|
|
88040
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88041
|
+
* the JSPB instance for transitional soy proto support:
|
|
88042
|
+
* http://goto/soy-param-migration
|
|
88043
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} msg The msg instance to transform.
|
|
88044
|
+
* @return {!Object}
|
|
88045
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88046
|
+
*/
|
|
88047
|
+
proto.clarifai.api.ListInstanceTypesRequest.toObject = function(includeInstance, msg) {
|
|
88048
|
+
var f, obj = {
|
|
88049
|
+
cloudProvider: (f = msg.getCloudProvider()) && proto_clarifai_api_resources_pb.CloudProvider.toObject(includeInstance, f),
|
|
88050
|
+
region: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
88051
|
+
};
|
|
88052
|
+
|
|
88053
|
+
if (includeInstance) {
|
|
88054
|
+
obj.$jspbMessageInstance = msg;
|
|
88055
|
+
}
|
|
88056
|
+
return obj;
|
|
88057
|
+
};
|
|
88058
|
+
}
|
|
88059
|
+
|
|
88060
|
+
|
|
88061
|
+
/**
|
|
88062
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88063
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88064
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest}
|
|
88065
|
+
*/
|
|
88066
|
+
proto.clarifai.api.ListInstanceTypesRequest.deserializeBinary = function(bytes) {
|
|
88067
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88068
|
+
var msg = new proto.clarifai.api.ListInstanceTypesRequest;
|
|
88069
|
+
return proto.clarifai.api.ListInstanceTypesRequest.deserializeBinaryFromReader(msg, reader);
|
|
88070
|
+
};
|
|
88071
|
+
|
|
88072
|
+
|
|
88073
|
+
/**
|
|
88074
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88075
|
+
* given reader into the given message object.
|
|
88076
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} msg The message object to deserialize into.
|
|
88077
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88078
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest}
|
|
88079
|
+
*/
|
|
88080
|
+
proto.clarifai.api.ListInstanceTypesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
88081
|
+
while (reader.nextField()) {
|
|
88082
|
+
if (reader.isEndGroup()) {
|
|
88083
|
+
break;
|
|
88084
|
+
}
|
|
88085
|
+
var field = reader.getFieldNumber();
|
|
88086
|
+
switch (field) {
|
|
88087
|
+
case 1:
|
|
88088
|
+
var value = new proto_clarifai_api_resources_pb.CloudProvider;
|
|
88089
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.CloudProvider.deserializeBinaryFromReader);
|
|
88090
|
+
msg.setCloudProvider(value);
|
|
88091
|
+
break;
|
|
88092
|
+
case 2:
|
|
88093
|
+
var value = /** @type {string} */ (reader.readString());
|
|
88094
|
+
msg.setRegion(value);
|
|
88095
|
+
break;
|
|
88096
|
+
default:
|
|
88097
|
+
reader.skipField();
|
|
88098
|
+
break;
|
|
88099
|
+
}
|
|
88100
|
+
}
|
|
88101
|
+
return msg;
|
|
88102
|
+
};
|
|
88103
|
+
|
|
88104
|
+
|
|
88105
|
+
/**
|
|
88106
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88107
|
+
* @return {!Uint8Array}
|
|
88108
|
+
*/
|
|
88109
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.serializeBinary = function() {
|
|
88110
|
+
var writer = new jspb.BinaryWriter();
|
|
88111
|
+
proto.clarifai.api.ListInstanceTypesRequest.serializeBinaryToWriter(this, writer);
|
|
88112
|
+
return writer.getResultBuffer();
|
|
88113
|
+
};
|
|
88114
|
+
|
|
88115
|
+
|
|
88116
|
+
/**
|
|
88117
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88118
|
+
* format), writing to the given BinaryWriter.
|
|
88119
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} message
|
|
88120
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88121
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88122
|
+
*/
|
|
88123
|
+
proto.clarifai.api.ListInstanceTypesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
88124
|
+
var f = undefined;
|
|
88125
|
+
f = message.getCloudProvider();
|
|
88126
|
+
if (f != null) {
|
|
88127
|
+
writer.writeMessage(
|
|
88128
|
+
1,
|
|
88129
|
+
f,
|
|
88130
|
+
proto_clarifai_api_resources_pb.CloudProvider.serializeBinaryToWriter
|
|
88131
|
+
);
|
|
88132
|
+
}
|
|
88133
|
+
f = message.getRegion();
|
|
88134
|
+
if (f.length > 0) {
|
|
88135
|
+
writer.writeString(
|
|
88136
|
+
2,
|
|
88137
|
+
f
|
|
88138
|
+
);
|
|
88139
|
+
}
|
|
88140
|
+
};
|
|
88141
|
+
|
|
88142
|
+
|
|
88143
|
+
/**
|
|
88144
|
+
* optional CloudProvider cloud_provider = 1;
|
|
88145
|
+
* @return {?proto.clarifai.api.CloudProvider}
|
|
88146
|
+
*/
|
|
88147
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.getCloudProvider = function() {
|
|
88148
|
+
return /** @type{?proto.clarifai.api.CloudProvider} */ (
|
|
88149
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.CloudProvider, 1));
|
|
88150
|
+
};
|
|
88151
|
+
|
|
88152
|
+
|
|
88153
|
+
/**
|
|
88154
|
+
* @param {?proto.clarifai.api.CloudProvider|undefined} value
|
|
88155
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
88156
|
+
*/
|
|
88157
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.setCloudProvider = function(value) {
|
|
88158
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88159
|
+
};
|
|
88160
|
+
|
|
88161
|
+
|
|
88162
|
+
/**
|
|
88163
|
+
* Clears the message field making it undefined.
|
|
88164
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
88165
|
+
*/
|
|
88166
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.clearCloudProvider = function() {
|
|
88167
|
+
return this.setCloudProvider(undefined);
|
|
88168
|
+
};
|
|
88169
|
+
|
|
88170
|
+
|
|
88171
|
+
/**
|
|
88172
|
+
* Returns whether this field is set.
|
|
88173
|
+
* @return {boolean}
|
|
88174
|
+
*/
|
|
88175
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.hasCloudProvider = function() {
|
|
88176
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88177
|
+
};
|
|
88178
|
+
|
|
88179
|
+
|
|
88180
|
+
/**
|
|
88181
|
+
* optional string region = 2;
|
|
88182
|
+
* @return {string}
|
|
88183
|
+
*/
|
|
88184
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.getRegion = function() {
|
|
88185
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
88186
|
+
};
|
|
88187
|
+
|
|
88188
|
+
|
|
88189
|
+
/**
|
|
88190
|
+
* @param {string} value
|
|
88191
|
+
* @return {!proto.clarifai.api.ListInstanceTypesRequest} returns this
|
|
88192
|
+
*/
|
|
88193
|
+
proto.clarifai.api.ListInstanceTypesRequest.prototype.setRegion = function(value) {
|
|
88194
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
88195
|
+
};
|
|
88196
|
+
|
|
88197
|
+
|
|
88198
|
+
|
|
88199
|
+
/**
|
|
88200
|
+
* List of repeated fields within this message type.
|
|
88201
|
+
* @private {!Array<number>}
|
|
88202
|
+
* @const
|
|
88203
|
+
*/
|
|
88204
|
+
proto.clarifai.api.MultiInstanceTypeResponse.repeatedFields_ = [2];
|
|
88205
|
+
|
|
88206
|
+
|
|
88207
|
+
|
|
88208
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
88209
|
+
/**
|
|
88210
|
+
* Creates an object representation of this proto.
|
|
88211
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
88212
|
+
* Optional fields that are not set will be set to undefined.
|
|
88213
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
88214
|
+
* For the list of reserved names please see:
|
|
88215
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
88216
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
88217
|
+
* JSPB instance for transitional soy proto support:
|
|
88218
|
+
* http://goto/soy-param-migration
|
|
88219
|
+
* @return {!Object}
|
|
88220
|
+
*/
|
|
88221
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
88222
|
+
return proto.clarifai.api.MultiInstanceTypeResponse.toObject(opt_includeInstance, this);
|
|
88223
|
+
};
|
|
88224
|
+
|
|
88225
|
+
|
|
88226
|
+
/**
|
|
88227
|
+
* Static version of the {@see toObject} method.
|
|
88228
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88229
|
+
* the JSPB instance for transitional soy proto support:
|
|
88230
|
+
* http://goto/soy-param-migration
|
|
88231
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} msg The msg instance to transform.
|
|
88232
|
+
* @return {!Object}
|
|
88233
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88234
|
+
*/
|
|
88235
|
+
proto.clarifai.api.MultiInstanceTypeResponse.toObject = function(includeInstance, msg) {
|
|
88236
|
+
var f, obj = {
|
|
88237
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
88238
|
+
instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(),
|
|
88239
|
+
proto_clarifai_api_resources_pb.InstanceType.toObject, includeInstance)
|
|
88240
|
+
};
|
|
88241
|
+
|
|
88242
|
+
if (includeInstance) {
|
|
88243
|
+
obj.$jspbMessageInstance = msg;
|
|
88244
|
+
}
|
|
88245
|
+
return obj;
|
|
88246
|
+
};
|
|
88247
|
+
}
|
|
88248
|
+
|
|
88249
|
+
|
|
88250
|
+
/**
|
|
88251
|
+
* Deserializes binary data (in protobuf wire format).
|
|
88252
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
88253
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse}
|
|
88254
|
+
*/
|
|
88255
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinary = function(bytes) {
|
|
88256
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88257
|
+
var msg = new proto.clarifai.api.MultiInstanceTypeResponse;
|
|
88258
|
+
return proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinaryFromReader(msg, reader);
|
|
88259
|
+
};
|
|
88260
|
+
|
|
88261
|
+
|
|
88262
|
+
/**
|
|
88263
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
88264
|
+
* given reader into the given message object.
|
|
88265
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} msg The message object to deserialize into.
|
|
88266
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
88267
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse}
|
|
88268
|
+
*/
|
|
88269
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
88270
|
+
while (reader.nextField()) {
|
|
88271
|
+
if (reader.isEndGroup()) {
|
|
88272
|
+
break;
|
|
88273
|
+
}
|
|
88274
|
+
var field = reader.getFieldNumber();
|
|
88275
|
+
switch (field) {
|
|
88276
|
+
case 1:
|
|
88277
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
88278
|
+
reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
88279
|
+
msg.setStatus(value);
|
|
88280
|
+
break;
|
|
88281
|
+
case 2:
|
|
88282
|
+
var value = new proto_clarifai_api_resources_pb.InstanceType;
|
|
88283
|
+
reader.readMessage(value,proto_clarifai_api_resources_pb.InstanceType.deserializeBinaryFromReader);
|
|
88284
|
+
msg.addInstanceTypes(value);
|
|
88285
|
+
break;
|
|
88286
|
+
default:
|
|
88287
|
+
reader.skipField();
|
|
88288
|
+
break;
|
|
88289
|
+
}
|
|
88290
|
+
}
|
|
88291
|
+
return msg;
|
|
88292
|
+
};
|
|
88293
|
+
|
|
88294
|
+
|
|
88295
|
+
/**
|
|
88296
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
88297
|
+
* @return {!Uint8Array}
|
|
88298
|
+
*/
|
|
88299
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.serializeBinary = function() {
|
|
88300
|
+
var writer = new jspb.BinaryWriter();
|
|
88301
|
+
proto.clarifai.api.MultiInstanceTypeResponse.serializeBinaryToWriter(this, writer);
|
|
88302
|
+
return writer.getResultBuffer();
|
|
88303
|
+
};
|
|
88304
|
+
|
|
88305
|
+
|
|
88306
|
+
/**
|
|
88307
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
88308
|
+
* format), writing to the given BinaryWriter.
|
|
88309
|
+
* @param {!proto.clarifai.api.MultiInstanceTypeResponse} message
|
|
88310
|
+
* @param {!jspb.BinaryWriter} writer
|
|
88311
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
88312
|
+
*/
|
|
88313
|
+
proto.clarifai.api.MultiInstanceTypeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
88314
|
+
var f = undefined;
|
|
88315
|
+
f = message.getStatus();
|
|
88316
|
+
if (f != null) {
|
|
88317
|
+
writer.writeMessage(
|
|
88318
|
+
1,
|
|
88319
|
+
f,
|
|
88320
|
+
proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
|
|
88321
|
+
);
|
|
88322
|
+
}
|
|
88323
|
+
f = message.getInstanceTypesList();
|
|
88324
|
+
if (f.length > 0) {
|
|
88325
|
+
writer.writeRepeatedMessage(
|
|
88326
|
+
2,
|
|
88327
|
+
f,
|
|
88328
|
+
proto_clarifai_api_resources_pb.InstanceType.serializeBinaryToWriter
|
|
88329
|
+
);
|
|
88330
|
+
}
|
|
88331
|
+
};
|
|
88332
|
+
|
|
88333
|
+
|
|
88334
|
+
/**
|
|
88335
|
+
* optional status.Status status = 1;
|
|
88336
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
88337
|
+
*/
|
|
88338
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.getStatus = function() {
|
|
88339
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (
|
|
88340
|
+
jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
88341
|
+
};
|
|
88342
|
+
|
|
88343
|
+
|
|
88344
|
+
/**
|
|
88345
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
88346
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88347
|
+
*/
|
|
88348
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.setStatus = function(value) {
|
|
88349
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
88350
|
+
};
|
|
88351
|
+
|
|
88352
|
+
|
|
88353
|
+
/**
|
|
88354
|
+
* Clears the message field making it undefined.
|
|
88355
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88356
|
+
*/
|
|
88357
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.clearStatus = function() {
|
|
88358
|
+
return this.setStatus(undefined);
|
|
88359
|
+
};
|
|
88360
|
+
|
|
88361
|
+
|
|
88362
|
+
/**
|
|
88363
|
+
* Returns whether this field is set.
|
|
88364
|
+
* @return {boolean}
|
|
88365
|
+
*/
|
|
88366
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.hasStatus = function() {
|
|
88367
|
+
return jspb.Message.getField(this, 1) != null;
|
|
88368
|
+
};
|
|
88369
|
+
|
|
88370
|
+
|
|
88371
|
+
/**
|
|
88372
|
+
* repeated InstanceType instance_types = 2;
|
|
88373
|
+
* @return {!Array<!proto.clarifai.api.InstanceType>}
|
|
88374
|
+
*/
|
|
88375
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.getInstanceTypesList = function() {
|
|
88376
|
+
return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (
|
|
88377
|
+
jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InstanceType, 2));
|
|
88378
|
+
};
|
|
88379
|
+
|
|
88380
|
+
|
|
88381
|
+
/**
|
|
88382
|
+
* @param {!Array<!proto.clarifai.api.InstanceType>} value
|
|
88383
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88384
|
+
*/
|
|
88385
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.setInstanceTypesList = function(value) {
|
|
88386
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
88387
|
+
};
|
|
88388
|
+
|
|
88389
|
+
|
|
88390
|
+
/**
|
|
88391
|
+
* @param {!proto.clarifai.api.InstanceType=} opt_value
|
|
88392
|
+
* @param {number=} opt_index
|
|
88393
|
+
* @return {!proto.clarifai.api.InstanceType}
|
|
88394
|
+
*/
|
|
88395
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.addInstanceTypes = function(opt_value, opt_index) {
|
|
88396
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InstanceType, opt_index);
|
|
88397
|
+
};
|
|
88398
|
+
|
|
88399
|
+
|
|
88400
|
+
/**
|
|
88401
|
+
* Clears the list making it empty but non-null.
|
|
88402
|
+
* @return {!proto.clarifai.api.MultiInstanceTypeResponse} returns this
|
|
88403
|
+
*/
|
|
88404
|
+
proto.clarifai.api.MultiInstanceTypeResponse.prototype.clearInstanceTypesList = function() {
|
|
88405
|
+
return this.setInstanceTypesList([]);
|
|
88406
|
+
};
|
|
88407
|
+
|
|
88408
|
+
|
|
88409
|
+
|
|
88410
|
+
|
|
88411
|
+
|
|
87976
88412
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
87977
88413
|
/**
|
|
87978
88414
|
* 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,
|