clarifai-web-grpc 9.10.7 → 9.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 9.10.7
1
+ 9.11.0
@@ -89,7 +89,6 @@ goog.exportSymbol('proto.clarifai.api.DataSourceURL', null, global);
89
89
  goog.exportSymbol('proto.clarifai.api.DataType', null, global);
90
90
  goog.exportSymbol('proto.clarifai.api.Dataset', null, global);
91
91
  goog.exportSymbol('proto.clarifai.api.DatasetInput', null, global);
92
- goog.exportSymbol('proto.clarifai.api.DatasetInputsSearchAddJob', null, global);
93
92
  goog.exportSymbol('proto.clarifai.api.DatasetSplit', null, global);
94
93
  goog.exportSymbol('proto.clarifai.api.DatasetSplit.MethodInfoCase', null, global);
95
94
  goog.exportSymbol('proto.clarifai.api.DatasetStar', null, global);
@@ -3457,27 +3456,6 @@ if (goog.DEBUG && !COMPILED) {
3457
3456
  */
3458
3457
  proto.clarifai.api.StatValueAggregateQuery.displayName = 'proto.clarifai.api.StatValueAggregateQuery';
3459
3458
  }
3460
- /**
3461
- * Generated by JsPbCodeGenerator.
3462
- * @param {Array=} opt_data Optional initial data array, typically from a
3463
- * server response, or constructed directly in Javascript. The array is used
3464
- * in place and becomes part of the constructed object. It is not cloned.
3465
- * If no data is provided, the constructed object will be empty, but still
3466
- * valid.
3467
- * @extends {jspb.Message}
3468
- * @constructor
3469
- */
3470
- proto.clarifai.api.DatasetInputsSearchAddJob = function (opt_data) {
3471
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3472
- };
3473
- goog.inherits(proto.clarifai.api.DatasetInputsSearchAddJob, jspb.Message);
3474
- if (goog.DEBUG && !COMPILED) {
3475
- /**
3476
- * @public
3477
- * @override
3478
- */
3479
- proto.clarifai.api.DatasetInputsSearchAddJob.displayName = 'proto.clarifai.api.DatasetInputsSearchAddJob';
3480
- }
3481
3459
  /**
3482
3460
  * Generated by JsPbCodeGenerator.
3483
3461
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -41973,288 +41951,6 @@ proto.clarifai.api.StatValueAggregateQuery.prototype.clearEndTime = function ()
41973
41951
  proto.clarifai.api.StatValueAggregateQuery.prototype.hasEndTime = function () {
41974
41952
  return jspb.Message.getField(this, 6) != null;
41975
41953
  };
41976
- if (jspb.Message.GENERATE_TO_OBJECT) {
41977
- /**
41978
- * Creates an object representation of this proto.
41979
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
41980
- * Optional fields that are not set will be set to undefined.
41981
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41982
- * For the list of reserved names please see:
41983
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41984
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41985
- * JSPB instance for transitional soy proto support:
41986
- * http://goto/soy-param-migration
41987
- * @return {!Object}
41988
- */
41989
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.toObject = function (opt_includeInstance) {
41990
- return proto.clarifai.api.DatasetInputsSearchAddJob.toObject(opt_includeInstance, this);
41991
- };
41992
- /**
41993
- * Static version of the {@see toObject} method.
41994
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41995
- * the JSPB instance for transitional soy proto support:
41996
- * http://goto/soy-param-migration
41997
- * @param {!proto.clarifai.api.DatasetInputsSearchAddJob} msg The msg instance to transform.
41998
- * @return {!Object}
41999
- * @suppress {unusedLocalVariables} f is only used for nested messages
42000
- */
42001
- proto.clarifai.api.DatasetInputsSearchAddJob.toObject = function (includeInstance, msg) {
42002
- var f, obj = {
42003
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
42004
- createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
42005
- modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
42006
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
42007
- datasetId: jspb.Message.getFieldWithDefault(msg, 5, ""),
42008
- search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f)
42009
- };
42010
- if (includeInstance) {
42011
- obj.$jspbMessageInstance = msg;
42012
- }
42013
- return obj;
42014
- };
42015
- }
42016
- /**
42017
- * Deserializes binary data (in protobuf wire format).
42018
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
42019
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob}
42020
- */
42021
- proto.clarifai.api.DatasetInputsSearchAddJob.deserializeBinary = function (bytes) {
42022
- var reader = new jspb.BinaryReader(bytes);
42023
- var msg = new proto.clarifai.api.DatasetInputsSearchAddJob;
42024
- return proto.clarifai.api.DatasetInputsSearchAddJob.deserializeBinaryFromReader(msg, reader);
42025
- };
42026
- /**
42027
- * Deserializes binary data (in protobuf wire format) from the
42028
- * given reader into the given message object.
42029
- * @param {!proto.clarifai.api.DatasetInputsSearchAddJob} msg The message object to deserialize into.
42030
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42031
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob}
42032
- */
42033
- proto.clarifai.api.DatasetInputsSearchAddJob.deserializeBinaryFromReader = function (msg, reader) {
42034
- while (reader.nextField()) {
42035
- if (reader.isEndGroup()) {
42036
- break;
42037
- }
42038
- var field = reader.getFieldNumber();
42039
- switch (field) {
42040
- case 1:
42041
- var value = /** @type {string} */ (reader.readString());
42042
- msg.setId(value);
42043
- break;
42044
- case 2:
42045
- var value = new google_protobuf_timestamp_pb.Timestamp;
42046
- reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
42047
- msg.setCreatedAt(value);
42048
- break;
42049
- case 3:
42050
- var value = new google_protobuf_timestamp_pb.Timestamp;
42051
- reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
42052
- msg.setModifiedAt(value);
42053
- break;
42054
- case 4:
42055
- var value = new proto_clarifai_api_status_status_pb.Status;
42056
- reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
42057
- msg.setStatus(value);
42058
- break;
42059
- case 5:
42060
- var value = /** @type {string} */ (reader.readString());
42061
- msg.setDatasetId(value);
42062
- break;
42063
- case 6:
42064
- var value = new proto.clarifai.api.Search;
42065
- reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
42066
- msg.setSearch(value);
42067
- break;
42068
- default:
42069
- reader.skipField();
42070
- break;
42071
- }
42072
- }
42073
- return msg;
42074
- };
42075
- /**
42076
- * Serializes the message to binary data (in protobuf wire format).
42077
- * @return {!Uint8Array}
42078
- */
42079
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.serializeBinary = function () {
42080
- var writer = new jspb.BinaryWriter();
42081
- proto.clarifai.api.DatasetInputsSearchAddJob.serializeBinaryToWriter(this, writer);
42082
- return writer.getResultBuffer();
42083
- };
42084
- /**
42085
- * Serializes the given message to binary data (in protobuf wire
42086
- * format), writing to the given BinaryWriter.
42087
- * @param {!proto.clarifai.api.DatasetInputsSearchAddJob} message
42088
- * @param {!jspb.BinaryWriter} writer
42089
- * @suppress {unusedLocalVariables} f is only used for nested messages
42090
- */
42091
- proto.clarifai.api.DatasetInputsSearchAddJob.serializeBinaryToWriter = function (message, writer) {
42092
- var f = undefined;
42093
- f = message.getId();
42094
- if (f.length > 0) {
42095
- writer.writeString(1, f);
42096
- }
42097
- f = message.getCreatedAt();
42098
- if (f != null) {
42099
- writer.writeMessage(2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
42100
- }
42101
- f = message.getModifiedAt();
42102
- if (f != null) {
42103
- writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
42104
- }
42105
- f = message.getStatus();
42106
- if (f != null) {
42107
- writer.writeMessage(4, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
42108
- }
42109
- f = message.getDatasetId();
42110
- if (f.length > 0) {
42111
- writer.writeString(5, f);
42112
- }
42113
- f = message.getSearch();
42114
- if (f != null) {
42115
- writer.writeMessage(6, f, proto.clarifai.api.Search.serializeBinaryToWriter);
42116
- }
42117
- };
42118
- /**
42119
- * optional string id = 1;
42120
- * @return {string}
42121
- */
42122
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getId = function () {
42123
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
42124
- };
42125
- /**
42126
- * @param {string} value
42127
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42128
- */
42129
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setId = function (value) {
42130
- return jspb.Message.setProto3StringField(this, 1, value);
42131
- };
42132
- /**
42133
- * optional google.protobuf.Timestamp created_at = 2;
42134
- * @return {?proto.google.protobuf.Timestamp}
42135
- */
42136
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getCreatedAt = function () {
42137
- return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
42138
- };
42139
- /**
42140
- * @param {?proto.google.protobuf.Timestamp|undefined} value
42141
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42142
- */
42143
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setCreatedAt = function (value) {
42144
- return jspb.Message.setWrapperField(this, 2, value);
42145
- };
42146
- /**
42147
- * Clears the message field making it undefined.
42148
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42149
- */
42150
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearCreatedAt = function () {
42151
- return this.setCreatedAt(undefined);
42152
- };
42153
- /**
42154
- * Returns whether this field is set.
42155
- * @return {boolean}
42156
- */
42157
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasCreatedAt = function () {
42158
- return jspb.Message.getField(this, 2) != null;
42159
- };
42160
- /**
42161
- * optional google.protobuf.Timestamp modified_at = 3;
42162
- * @return {?proto.google.protobuf.Timestamp}
42163
- */
42164
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getModifiedAt = function () {
42165
- return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
42166
- };
42167
- /**
42168
- * @param {?proto.google.protobuf.Timestamp|undefined} value
42169
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42170
- */
42171
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setModifiedAt = function (value) {
42172
- return jspb.Message.setWrapperField(this, 3, value);
42173
- };
42174
- /**
42175
- * Clears the message field making it undefined.
42176
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42177
- */
42178
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearModifiedAt = function () {
42179
- return this.setModifiedAt(undefined);
42180
- };
42181
- /**
42182
- * Returns whether this field is set.
42183
- * @return {boolean}
42184
- */
42185
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasModifiedAt = function () {
42186
- return jspb.Message.getField(this, 3) != null;
42187
- };
42188
- /**
42189
- * optional status.Status status = 4;
42190
- * @return {?proto.clarifai.api.status.Status}
42191
- */
42192
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getStatus = function () {
42193
- return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 4));
42194
- };
42195
- /**
42196
- * @param {?proto.clarifai.api.status.Status|undefined} value
42197
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42198
- */
42199
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setStatus = function (value) {
42200
- return jspb.Message.setWrapperField(this, 4, value);
42201
- };
42202
- /**
42203
- * Clears the message field making it undefined.
42204
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42205
- */
42206
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearStatus = function () {
42207
- return this.setStatus(undefined);
42208
- };
42209
- /**
42210
- * Returns whether this field is set.
42211
- * @return {boolean}
42212
- */
42213
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasStatus = function () {
42214
- return jspb.Message.getField(this, 4) != null;
42215
- };
42216
- /**
42217
- * optional string dataset_id = 5;
42218
- * @return {string}
42219
- */
42220
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getDatasetId = function () {
42221
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
42222
- };
42223
- /**
42224
- * @param {string} value
42225
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42226
- */
42227
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setDatasetId = function (value) {
42228
- return jspb.Message.setProto3StringField(this, 5, value);
42229
- };
42230
- /**
42231
- * optional Search search = 6;
42232
- * @return {?proto.clarifai.api.Search}
42233
- */
42234
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getSearch = function () {
42235
- return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 6));
42236
- };
42237
- /**
42238
- * @param {?proto.clarifai.api.Search|undefined} value
42239
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42240
- */
42241
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setSearch = function (value) {
42242
- return jspb.Message.setWrapperField(this, 6, value);
42243
- };
42244
- /**
42245
- * Clears the message field making it undefined.
42246
- * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this
42247
- */
42248
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearSearch = function () {
42249
- return this.setSearch(undefined);
42250
- };
42251
- /**
42252
- * Returns whether this field is set.
42253
- * @return {boolean}
42254
- */
42255
- proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasSearch = function () {
42256
- return jspb.Message.getField(this, 6) != null;
42257
- };
42258
41954
  if (jspb.Message.GENERATE_TO_OBJECT) {
42259
41955
  /**
42260
41956
  * Creates an object representation of this proto.
@@ -8134,48 +8134,6 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteBulkOperations =
8134
8134
  return this.client_.unaryCall(this.hostname_ +
8135
8135
  '/clarifai.api.V2/DeleteBulkOperations', request, metadata || {}, methodDescriptor_V2_DeleteBulkOperations);
8136
8136
  };
8137
- /**
8138
- * @const
8139
- * @type {!grpc.web.MethodDescriptor<
8140
- * !proto.clarifai.api.GetDatasetInputsSearchAddJobRequest,
8141
- * !proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse>}
8142
- */
8143
- const methodDescriptor_V2_GetDatasetInputsSearchAddJob = new grpc.web.MethodDescriptor('/clarifai.api.V2/GetDatasetInputsSearchAddJob', grpc.web.MethodType.UNARY, proto.clarifai.api.GetDatasetInputsSearchAddJobRequest, proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse,
8144
- /**
8145
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} request
8146
- * @return {!Uint8Array}
8147
- */
8148
- function (request) {
8149
- return request.serializeBinary();
8150
- }, proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinary);
8151
- /**
8152
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} request The
8153
- * request proto
8154
- * @param {?Object<string, string>} metadata User defined
8155
- * call metadata
8156
- * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse)}
8157
- * callback The callback function(error, response)
8158
- * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse>|undefined}
8159
- * The XHR Node Readable Stream
8160
- */
8161
- proto.clarifai.api.V2Client.prototype.getDatasetInputsSearchAddJob =
8162
- function (request, metadata, callback) {
8163
- return this.client_.rpcCall(this.hostname_ +
8164
- '/clarifai.api.V2/GetDatasetInputsSearchAddJob', request, metadata || {}, methodDescriptor_V2_GetDatasetInputsSearchAddJob, callback);
8165
- };
8166
- /**
8167
- * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} request The
8168
- * request proto
8169
- * @param {?Object<string, string>=} metadata User defined
8170
- * call metadata
8171
- * @return {!Promise<!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse>}
8172
- * Promise that resolves to the response
8173
- */
8174
- proto.clarifai.api.V2PromiseClient.prototype.getDatasetInputsSearchAddJob =
8175
- function (request, metadata) {
8176
- return this.client_.unaryCall(this.hostname_ +
8177
- '/clarifai.api.V2/GetDatasetInputsSearchAddJob', request, metadata || {}, methodDescriptor_V2_GetDatasetInputsSearchAddJob);
8178
- };
8179
8137
  /**
8180
8138
  * @const
8181
8139
  * @type {!grpc.web.MethodDescriptor<