clarifai-web-grpc 11.7.1 → 11.7.3

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
- 11.7.1
1
+ 11.7.3
@@ -234,6 +234,7 @@ goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
234
234
  goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
235
235
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
236
236
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
237
+ goog.exportSymbol('proto.clarifai.api.OpenRouterInfo', null, global);
237
238
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
238
239
  goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
239
240
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
@@ -1743,6 +1744,27 @@ if (goog.DEBUG && !COMPILED) {
1743
1744
  */
1744
1745
  proto.clarifai.api.Model.displayName = 'proto.clarifai.api.Model';
1745
1746
  }
1747
+ /**
1748
+ * Generated by JsPbCodeGenerator.
1749
+ * @param {Array=} opt_data Optional initial data array, typically from a
1750
+ * server response, or constructed directly in Javascript. The array is used
1751
+ * in place and becomes part of the constructed object. It is not cloned.
1752
+ * If no data is provided, the constructed object will be empty, but still
1753
+ * valid.
1754
+ * @extends {jspb.Message}
1755
+ * @constructor
1756
+ */
1757
+ proto.clarifai.api.OpenRouterInfo = function (opt_data) {
1758
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1759
+ };
1760
+ goog.inherits(proto.clarifai.api.OpenRouterInfo, jspb.Message);
1761
+ if (goog.DEBUG && !COMPILED) {
1762
+ /**
1763
+ * @public
1764
+ * @override
1765
+ */
1766
+ proto.clarifai.api.OpenRouterInfo.displayName = 'proto.clarifai.api.OpenRouterInfo';
1767
+ }
1746
1768
  /**
1747
1769
  * Generated by JsPbCodeGenerator.
1748
1770
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -21808,7 +21830,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21808
21830
  billingType: jspb.Message.getFieldWithDefault(msg, 40, 0),
21809
21831
  featuredOrder: (f = msg.getFeaturedOrder()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
21810
21832
  deployRestriction: jspb.Message.getFieldWithDefault(msg, 42, 0),
21811
- replicaCount: jspb.Message.getFieldWithDefault(msg, 43, 0)
21833
+ replicaCount: jspb.Message.getFieldWithDefault(msg, 43, 0),
21834
+ openRouterInfo: (f = msg.getOpenRouterInfo()) && proto.clarifai.api.OpenRouterInfo.toObject(includeInstance, f)
21812
21835
  };
21813
21836
  if (includeInstance) {
21814
21837
  obj.$jspbMessageInstance = msg;
@@ -21993,6 +22016,11 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
21993
22016
  var value = /** @type {number} */ (reader.readUint32());
21994
22017
  msg.setReplicaCount(value);
21995
22018
  break;
22019
+ case 44:
22020
+ var value = new proto.clarifai.api.OpenRouterInfo;
22021
+ reader.readMessage(value, proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader);
22022
+ msg.setOpenRouterInfo(value);
22023
+ break;
21996
22024
  default:
21997
22025
  reader.skipField();
21998
22026
  break;
@@ -22158,6 +22186,10 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
22158
22186
  if (f !== 0) {
22159
22187
  writer.writeUint32(43, f);
22160
22188
  }
22189
+ f = message.getOpenRouterInfo();
22190
+ if (f != null) {
22191
+ writer.writeMessage(44, f, proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter);
22192
+ }
22161
22193
  };
22162
22194
  /**
22163
22195
  * @enum {number}
@@ -22908,6 +22940,156 @@ proto.clarifai.api.Model.prototype.getReplicaCount = function () {
22908
22940
  proto.clarifai.api.Model.prototype.setReplicaCount = function (value) {
22909
22941
  return jspb.Message.setProto3IntField(this, 43, value);
22910
22942
  };
22943
+ /**
22944
+ * optional OpenRouterInfo open_router_info = 44;
22945
+ * @return {?proto.clarifai.api.OpenRouterInfo}
22946
+ */
22947
+ proto.clarifai.api.Model.prototype.getOpenRouterInfo = function () {
22948
+ return /** @type{?proto.clarifai.api.OpenRouterInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OpenRouterInfo, 44));
22949
+ };
22950
+ /**
22951
+ * @param {?proto.clarifai.api.OpenRouterInfo|undefined} value
22952
+ * @return {!proto.clarifai.api.Model} returns this
22953
+ */
22954
+ proto.clarifai.api.Model.prototype.setOpenRouterInfo = function (value) {
22955
+ return jspb.Message.setWrapperField(this, 44, value);
22956
+ };
22957
+ /**
22958
+ * Clears the message field making it undefined.
22959
+ * @return {!proto.clarifai.api.Model} returns this
22960
+ */
22961
+ proto.clarifai.api.Model.prototype.clearOpenRouterInfo = function () {
22962
+ return this.setOpenRouterInfo(undefined);
22963
+ };
22964
+ /**
22965
+ * Returns whether this field is set.
22966
+ * @return {boolean}
22967
+ */
22968
+ proto.clarifai.api.Model.prototype.hasOpenRouterInfo = function () {
22969
+ return jspb.Message.getField(this, 44) != null;
22970
+ };
22971
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22972
+ /**
22973
+ * Creates an object representation of this proto.
22974
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22975
+ * Optional fields that are not set will be set to undefined.
22976
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22977
+ * For the list of reserved names please see:
22978
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22979
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22980
+ * JSPB instance for transitional soy proto support:
22981
+ * http://goto/soy-param-migration
22982
+ * @return {!Object}
22983
+ */
22984
+ proto.clarifai.api.OpenRouterInfo.prototype.toObject = function (opt_includeInstance) {
22985
+ return proto.clarifai.api.OpenRouterInfo.toObject(opt_includeInstance, this);
22986
+ };
22987
+ /**
22988
+ * Static version of the {@see toObject} method.
22989
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22990
+ * the JSPB instance for transitional soy proto support:
22991
+ * http://goto/soy-param-migration
22992
+ * @param {!proto.clarifai.api.OpenRouterInfo} msg The msg instance to transform.
22993
+ * @return {!Object}
22994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22995
+ */
22996
+ proto.clarifai.api.OpenRouterInfo.toObject = function (includeInstance, msg) {
22997
+ var f, obj = {
22998
+ params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
22999
+ };
23000
+ if (includeInstance) {
23001
+ obj.$jspbMessageInstance = msg;
23002
+ }
23003
+ return obj;
23004
+ };
23005
+ }
23006
+ /**
23007
+ * Deserializes binary data (in protobuf wire format).
23008
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23009
+ * @return {!proto.clarifai.api.OpenRouterInfo}
23010
+ */
23011
+ proto.clarifai.api.OpenRouterInfo.deserializeBinary = function (bytes) {
23012
+ var reader = new jspb.BinaryReader(bytes);
23013
+ var msg = new proto.clarifai.api.OpenRouterInfo;
23014
+ return proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader(msg, reader);
23015
+ };
23016
+ /**
23017
+ * Deserializes binary data (in protobuf wire format) from the
23018
+ * given reader into the given message object.
23019
+ * @param {!proto.clarifai.api.OpenRouterInfo} msg The message object to deserialize into.
23020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23021
+ * @return {!proto.clarifai.api.OpenRouterInfo}
23022
+ */
23023
+ proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader = function (msg, reader) {
23024
+ while (reader.nextField()) {
23025
+ if (reader.isEndGroup()) {
23026
+ break;
23027
+ }
23028
+ var field = reader.getFieldNumber();
23029
+ switch (field) {
23030
+ case 1:
23031
+ var value = new google_protobuf_struct_pb.Struct;
23032
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
23033
+ msg.setParams(value);
23034
+ break;
23035
+ default:
23036
+ reader.skipField();
23037
+ break;
23038
+ }
23039
+ }
23040
+ return msg;
23041
+ };
23042
+ /**
23043
+ * Serializes the message to binary data (in protobuf wire format).
23044
+ * @return {!Uint8Array}
23045
+ */
23046
+ proto.clarifai.api.OpenRouterInfo.prototype.serializeBinary = function () {
23047
+ var writer = new jspb.BinaryWriter();
23048
+ proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter(this, writer);
23049
+ return writer.getResultBuffer();
23050
+ };
23051
+ /**
23052
+ * Serializes the given message to binary data (in protobuf wire
23053
+ * format), writing to the given BinaryWriter.
23054
+ * @param {!proto.clarifai.api.OpenRouterInfo} message
23055
+ * @param {!jspb.BinaryWriter} writer
23056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23057
+ */
23058
+ proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter = function (message, writer) {
23059
+ var f = undefined;
23060
+ f = message.getParams();
23061
+ if (f != null) {
23062
+ writer.writeMessage(1, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
23063
+ }
23064
+ };
23065
+ /**
23066
+ * optional google.protobuf.Struct params = 1;
23067
+ * @return {?proto.google.protobuf.Struct}
23068
+ */
23069
+ proto.clarifai.api.OpenRouterInfo.prototype.getParams = function () {
23070
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
23071
+ };
23072
+ /**
23073
+ * @param {?proto.google.protobuf.Struct|undefined} value
23074
+ * @return {!proto.clarifai.api.OpenRouterInfo} returns this
23075
+ */
23076
+ proto.clarifai.api.OpenRouterInfo.prototype.setParams = function (value) {
23077
+ return jspb.Message.setWrapperField(this, 1, value);
23078
+ };
23079
+ /**
23080
+ * Clears the message field making it undefined.
23081
+ * @return {!proto.clarifai.api.OpenRouterInfo} returns this
23082
+ */
23083
+ proto.clarifai.api.OpenRouterInfo.prototype.clearParams = function () {
23084
+ return this.setParams(undefined);
23085
+ };
23086
+ /**
23087
+ * Returns whether this field is set.
23088
+ * @return {boolean}
23089
+ */
23090
+ proto.clarifai.api.OpenRouterInfo.prototype.hasParams = function () {
23091
+ return jspb.Message.getField(this, 1) != null;
23092
+ };
22911
23093
  if (jspb.Message.GENERATE_TO_OBJECT) {
22912
23094
  /**
22913
23095
  * Creates an object representation of this proto.
@@ -10818,24 +10818,24 @@ proto.clarifai.api.V2PromiseClient.prototype.patchPipelines =
10818
10818
  * @const
10819
10819
  * @type {!grpc.web.MethodDescriptor<
10820
10820
  * !proto.clarifai.api.DeletePipelinesRequest,
10821
- * !proto.clarifai.api.MultiPipelineResponse>}
10821
+ * !proto.clarifai.api.status.BaseResponse>}
10822
10822
  */
10823
- const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelines', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelinesRequest, proto.clarifai.api.MultiPipelineResponse,
10823
+ const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelines', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelinesRequest, proto_clarifai_api_status_status_pb.BaseResponse,
10824
10824
  /**
10825
10825
  * @param {!proto.clarifai.api.DeletePipelinesRequest} request
10826
10826
  * @return {!Uint8Array}
10827
10827
  */
10828
10828
  function (request) {
10829
10829
  return request.serializeBinary();
10830
- }, proto.clarifai.api.MultiPipelineResponse.deserializeBinary);
10830
+ }, proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary);
10831
10831
  /**
10832
10832
  * @param {!proto.clarifai.api.DeletePipelinesRequest} request The
10833
10833
  * request proto
10834
10834
  * @param {?Object<string, string>} metadata User defined
10835
10835
  * call metadata
10836
- * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiPipelineResponse)}
10836
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
10837
10837
  * callback The callback function(error, response)
10838
- * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiPipelineResponse>|undefined}
10838
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
10839
10839
  * The XHR Node Readable Stream
10840
10840
  */
10841
10841
  proto.clarifai.api.V2Client.prototype.deletePipelines =
@@ -10848,7 +10848,7 @@ proto.clarifai.api.V2Client.prototype.deletePipelines =
10848
10848
  * request proto
10849
10849
  * @param {?Object<string, string>=} metadata User defined
10850
10850
  * call metadata
10851
- * @return {!Promise<!proto.clarifai.api.MultiPipelineResponse>}
10851
+ * @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
10852
10852
  * Promise that resolves to the response
10853
10853
  */
10854
10854
  proto.clarifai.api.V2PromiseClient.prototype.deletePipelines =
@@ -10986,24 +10986,24 @@ proto.clarifai.api.V2PromiseClient.prototype.patchPipelineVersions =
10986
10986
  * @const
10987
10987
  * @type {!grpc.web.MethodDescriptor<
10988
10988
  * !proto.clarifai.api.DeletePipelineVersionsRequest,
10989
- * !proto.clarifai.api.MultiPipelineVersionResponse>}
10989
+ * !proto.clarifai.api.status.BaseResponse>}
10990
10990
  */
10991
- const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelineVersions', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelineVersionsRequest, proto.clarifai.api.MultiPipelineVersionResponse,
10991
+ const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelineVersions', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelineVersionsRequest, proto_clarifai_api_status_status_pb.BaseResponse,
10992
10992
  /**
10993
10993
  * @param {!proto.clarifai.api.DeletePipelineVersionsRequest} request
10994
10994
  * @return {!Uint8Array}
10995
10995
  */
10996
10996
  function (request) {
10997
10997
  return request.serializeBinary();
10998
- }, proto.clarifai.api.MultiPipelineVersionResponse.deserializeBinary);
10998
+ }, proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary);
10999
10999
  /**
11000
11000
  * @param {!proto.clarifai.api.DeletePipelineVersionsRequest} request The
11001
11001
  * request proto
11002
11002
  * @param {?Object<string, string>} metadata User defined
11003
11003
  * call metadata
11004
- * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiPipelineVersionResponse)}
11004
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
11005
11005
  * callback The callback function(error, response)
11006
- * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiPipelineVersionResponse>|undefined}
11006
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
11007
11007
  * The XHR Node Readable Stream
11008
11008
  */
11009
11009
  proto.clarifai.api.V2Client.prototype.deletePipelineVersions =
@@ -11016,7 +11016,7 @@ proto.clarifai.api.V2Client.prototype.deletePipelineVersions =
11016
11016
  * request proto
11017
11017
  * @param {?Object<string, string>=} metadata User defined
11018
11018
  * call metadata
11019
- * @return {!Promise<!proto.clarifai.api.MultiPipelineVersionResponse>}
11019
+ * @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
11020
11020
  * Promise that resolves to the response
11021
11021
  */
11022
11022
  proto.clarifai.api.V2PromiseClient.prototype.deletePipelineVersions =
@@ -83083,7 +83083,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
83083
83083
  proto.clarifai.api.DeletePipelinesRequest.toObject = function (includeInstance, msg) {
83084
83084
  var f, obj = {
83085
83085
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
83086
- pipelineIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
83086
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
83087
83087
  };
83088
83088
  if (includeInstance) {
83089
83089
  obj.$jspbMessageInstance = msg;
@@ -83122,7 +83122,7 @@ proto.clarifai.api.DeletePipelinesRequest.deserializeBinaryFromReader = function
83122
83122
  break;
83123
83123
  case 2:
83124
83124
  var value = /** @type {string} */ (reader.readString());
83125
- msg.addPipelineIds(value);
83125
+ msg.addIds(value);
83126
83126
  break;
83127
83127
  default:
83128
83128
  reader.skipField();
@@ -83153,7 +83153,7 @@ proto.clarifai.api.DeletePipelinesRequest.serializeBinaryToWriter = function (me
83153
83153
  if (f != null) {
83154
83154
  writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
83155
83155
  }
83156
- f = message.getPipelineIdsList();
83156
+ f = message.getIdsList();
83157
83157
  if (f.length > 0) {
83158
83158
  writer.writeRepeatedString(2, f);
83159
83159
  }
@@ -83187,17 +83187,17 @@ proto.clarifai.api.DeletePipelinesRequest.prototype.hasUserAppId = function () {
83187
83187
  return jspb.Message.getField(this, 1) != null;
83188
83188
  };
83189
83189
  /**
83190
- * repeated string pipeline_ids = 2;
83190
+ * repeated string ids = 2;
83191
83191
  * @return {!Array<string>}
83192
83192
  */
83193
- proto.clarifai.api.DeletePipelinesRequest.prototype.getPipelineIdsList = function () {
83193
+ proto.clarifai.api.DeletePipelinesRequest.prototype.getIdsList = function () {
83194
83194
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
83195
83195
  };
83196
83196
  /**
83197
83197
  * @param {!Array<string>} value
83198
83198
  * @return {!proto.clarifai.api.DeletePipelinesRequest} returns this
83199
83199
  */
83200
- proto.clarifai.api.DeletePipelinesRequest.prototype.setPipelineIdsList = function (value) {
83200
+ proto.clarifai.api.DeletePipelinesRequest.prototype.setIdsList = function (value) {
83201
83201
  return jspb.Message.setField(this, 2, value || []);
83202
83202
  };
83203
83203
  /**
@@ -83205,15 +83205,15 @@ proto.clarifai.api.DeletePipelinesRequest.prototype.setPipelineIdsList = functio
83205
83205
  * @param {number=} opt_index
83206
83206
  * @return {!proto.clarifai.api.DeletePipelinesRequest} returns this
83207
83207
  */
83208
- proto.clarifai.api.DeletePipelinesRequest.prototype.addPipelineIds = function (value, opt_index) {
83208
+ proto.clarifai.api.DeletePipelinesRequest.prototype.addIds = function (value, opt_index) {
83209
83209
  return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
83210
83210
  };
83211
83211
  /**
83212
83212
  * Clears the list making it empty but non-null.
83213
83213
  * @return {!proto.clarifai.api.DeletePipelinesRequest} returns this
83214
83214
  */
83215
- proto.clarifai.api.DeletePipelinesRequest.prototype.clearPipelineIdsList = function () {
83216
- return this.setPipelineIdsList([]);
83215
+ proto.clarifai.api.DeletePipelinesRequest.prototype.clearIdsList = function () {
83216
+ return this.setIdsList([]);
83217
83217
  };
83218
83218
  if (jspb.Message.GENERATE_TO_OBJECT) {
83219
83219
  /**
@@ -317,6 +317,7 @@ proto.clarifai.api.status.StatusCode = {
317
317
  EVALUATION_UNEXPECTED_ERROR: 43108,
318
318
  EVALUATION_MIXED: 43109,
319
319
  STRIPE_EVENT_ERROR: 44001,
320
+ STRIPE_UNEXPECTED_ERROR: 44002,
320
321
  CACHE_MISS: 45001,
321
322
  REDIS_SCRIPT_EXITED_WITH_FAILURE: 45002,
322
323
  REDIS_STREAM_ERR: 45003,
@@ -325,6 +326,8 @@ proto.clarifai.api.status.StatusCode = {
325
326
  SIGNUP_EVENT_ERROR: 46001,
326
327
  SIGNUP_FLAGGED: 46002,
327
328
  FILETYPE_UNSUPPORTED: 46003,
329
+ LOGIN_EVENT_ERROR: 46004,
330
+ SIFT_UNCATEGORIZED_ERROR: 46005,
328
331
  APP_COUNT_INVALID_MESSAGE: 47001,
329
332
  APP_COUNT_UPDATE_INCREMENT_FAILED: 47002,
330
333
  APP_COUNT_REBUILD_FAILED: 47003,
@@ -234,6 +234,7 @@ goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
234
234
  goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
235
235
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
236
236
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
237
+ goog.exportSymbol('proto.clarifai.api.OpenRouterInfo', null, global);
237
238
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
238
239
  goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
239
240
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
@@ -1743,6 +1744,27 @@ if (goog.DEBUG && !COMPILED) {
1743
1744
  */
1744
1745
  proto.clarifai.api.Model.displayName = 'proto.clarifai.api.Model';
1745
1746
  }
1747
+ /**
1748
+ * Generated by JsPbCodeGenerator.
1749
+ * @param {Array=} opt_data Optional initial data array, typically from a
1750
+ * server response, or constructed directly in Javascript. The array is used
1751
+ * in place and becomes part of the constructed object. It is not cloned.
1752
+ * If no data is provided, the constructed object will be empty, but still
1753
+ * valid.
1754
+ * @extends {jspb.Message}
1755
+ * @constructor
1756
+ */
1757
+ proto.clarifai.api.OpenRouterInfo = function (opt_data) {
1758
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1759
+ };
1760
+ goog.inherits(proto.clarifai.api.OpenRouterInfo, jspb.Message);
1761
+ if (goog.DEBUG && !COMPILED) {
1762
+ /**
1763
+ * @public
1764
+ * @override
1765
+ */
1766
+ proto.clarifai.api.OpenRouterInfo.displayName = 'proto.clarifai.api.OpenRouterInfo';
1767
+ }
1746
1768
  /**
1747
1769
  * Generated by JsPbCodeGenerator.
1748
1770
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -21808,7 +21830,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21808
21830
  billingType: jspb.Message.getFieldWithDefault(msg, 40, 0),
21809
21831
  featuredOrder: (f = msg.getFeaturedOrder()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
21810
21832
  deployRestriction: jspb.Message.getFieldWithDefault(msg, 42, 0),
21811
- replicaCount: jspb.Message.getFieldWithDefault(msg, 43, 0)
21833
+ replicaCount: jspb.Message.getFieldWithDefault(msg, 43, 0),
21834
+ openRouterInfo: (f = msg.getOpenRouterInfo()) && proto.clarifai.api.OpenRouterInfo.toObject(includeInstance, f)
21812
21835
  };
21813
21836
  if (includeInstance) {
21814
21837
  obj.$jspbMessageInstance = msg;
@@ -21993,6 +22016,11 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function (msg, reader) {
21993
22016
  var value = /** @type {number} */ (reader.readUint32());
21994
22017
  msg.setReplicaCount(value);
21995
22018
  break;
22019
+ case 44:
22020
+ var value = new proto.clarifai.api.OpenRouterInfo;
22021
+ reader.readMessage(value, proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader);
22022
+ msg.setOpenRouterInfo(value);
22023
+ break;
21996
22024
  default:
21997
22025
  reader.skipField();
21998
22026
  break;
@@ -22158,6 +22186,10 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function (message, writer) {
22158
22186
  if (f !== 0) {
22159
22187
  writer.writeUint32(43, f);
22160
22188
  }
22189
+ f = message.getOpenRouterInfo();
22190
+ if (f != null) {
22191
+ writer.writeMessage(44, f, proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter);
22192
+ }
22161
22193
  };
22162
22194
  /**
22163
22195
  * @enum {number}
@@ -22908,6 +22940,156 @@ proto.clarifai.api.Model.prototype.getReplicaCount = function () {
22908
22940
  proto.clarifai.api.Model.prototype.setReplicaCount = function (value) {
22909
22941
  return jspb.Message.setProto3IntField(this, 43, value);
22910
22942
  };
22943
+ /**
22944
+ * optional OpenRouterInfo open_router_info = 44;
22945
+ * @return {?proto.clarifai.api.OpenRouterInfo}
22946
+ */
22947
+ proto.clarifai.api.Model.prototype.getOpenRouterInfo = function () {
22948
+ return /** @type{?proto.clarifai.api.OpenRouterInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.OpenRouterInfo, 44));
22949
+ };
22950
+ /**
22951
+ * @param {?proto.clarifai.api.OpenRouterInfo|undefined} value
22952
+ * @return {!proto.clarifai.api.Model} returns this
22953
+ */
22954
+ proto.clarifai.api.Model.prototype.setOpenRouterInfo = function (value) {
22955
+ return jspb.Message.setWrapperField(this, 44, value);
22956
+ };
22957
+ /**
22958
+ * Clears the message field making it undefined.
22959
+ * @return {!proto.clarifai.api.Model} returns this
22960
+ */
22961
+ proto.clarifai.api.Model.prototype.clearOpenRouterInfo = function () {
22962
+ return this.setOpenRouterInfo(undefined);
22963
+ };
22964
+ /**
22965
+ * Returns whether this field is set.
22966
+ * @return {boolean}
22967
+ */
22968
+ proto.clarifai.api.Model.prototype.hasOpenRouterInfo = function () {
22969
+ return jspb.Message.getField(this, 44) != null;
22970
+ };
22971
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22972
+ /**
22973
+ * Creates an object representation of this proto.
22974
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22975
+ * Optional fields that are not set will be set to undefined.
22976
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22977
+ * For the list of reserved names please see:
22978
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22979
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22980
+ * JSPB instance for transitional soy proto support:
22981
+ * http://goto/soy-param-migration
22982
+ * @return {!Object}
22983
+ */
22984
+ proto.clarifai.api.OpenRouterInfo.prototype.toObject = function (opt_includeInstance) {
22985
+ return proto.clarifai.api.OpenRouterInfo.toObject(opt_includeInstance, this);
22986
+ };
22987
+ /**
22988
+ * Static version of the {@see toObject} method.
22989
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22990
+ * the JSPB instance for transitional soy proto support:
22991
+ * http://goto/soy-param-migration
22992
+ * @param {!proto.clarifai.api.OpenRouterInfo} msg The msg instance to transform.
22993
+ * @return {!Object}
22994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22995
+ */
22996
+ proto.clarifai.api.OpenRouterInfo.toObject = function (includeInstance, msg) {
22997
+ var f, obj = {
22998
+ params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
22999
+ };
23000
+ if (includeInstance) {
23001
+ obj.$jspbMessageInstance = msg;
23002
+ }
23003
+ return obj;
23004
+ };
23005
+ }
23006
+ /**
23007
+ * Deserializes binary data (in protobuf wire format).
23008
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23009
+ * @return {!proto.clarifai.api.OpenRouterInfo}
23010
+ */
23011
+ proto.clarifai.api.OpenRouterInfo.deserializeBinary = function (bytes) {
23012
+ var reader = new jspb.BinaryReader(bytes);
23013
+ var msg = new proto.clarifai.api.OpenRouterInfo;
23014
+ return proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader(msg, reader);
23015
+ };
23016
+ /**
23017
+ * Deserializes binary data (in protobuf wire format) from the
23018
+ * given reader into the given message object.
23019
+ * @param {!proto.clarifai.api.OpenRouterInfo} msg The message object to deserialize into.
23020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23021
+ * @return {!proto.clarifai.api.OpenRouterInfo}
23022
+ */
23023
+ proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader = function (msg, reader) {
23024
+ while (reader.nextField()) {
23025
+ if (reader.isEndGroup()) {
23026
+ break;
23027
+ }
23028
+ var field = reader.getFieldNumber();
23029
+ switch (field) {
23030
+ case 1:
23031
+ var value = new google_protobuf_struct_pb.Struct;
23032
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
23033
+ msg.setParams(value);
23034
+ break;
23035
+ default:
23036
+ reader.skipField();
23037
+ break;
23038
+ }
23039
+ }
23040
+ return msg;
23041
+ };
23042
+ /**
23043
+ * Serializes the message to binary data (in protobuf wire format).
23044
+ * @return {!Uint8Array}
23045
+ */
23046
+ proto.clarifai.api.OpenRouterInfo.prototype.serializeBinary = function () {
23047
+ var writer = new jspb.BinaryWriter();
23048
+ proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter(this, writer);
23049
+ return writer.getResultBuffer();
23050
+ };
23051
+ /**
23052
+ * Serializes the given message to binary data (in protobuf wire
23053
+ * format), writing to the given BinaryWriter.
23054
+ * @param {!proto.clarifai.api.OpenRouterInfo} message
23055
+ * @param {!jspb.BinaryWriter} writer
23056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23057
+ */
23058
+ proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter = function (message, writer) {
23059
+ var f = undefined;
23060
+ f = message.getParams();
23061
+ if (f != null) {
23062
+ writer.writeMessage(1, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
23063
+ }
23064
+ };
23065
+ /**
23066
+ * optional google.protobuf.Struct params = 1;
23067
+ * @return {?proto.google.protobuf.Struct}
23068
+ */
23069
+ proto.clarifai.api.OpenRouterInfo.prototype.getParams = function () {
23070
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
23071
+ };
23072
+ /**
23073
+ * @param {?proto.google.protobuf.Struct|undefined} value
23074
+ * @return {!proto.clarifai.api.OpenRouterInfo} returns this
23075
+ */
23076
+ proto.clarifai.api.OpenRouterInfo.prototype.setParams = function (value) {
23077
+ return jspb.Message.setWrapperField(this, 1, value);
23078
+ };
23079
+ /**
23080
+ * Clears the message field making it undefined.
23081
+ * @return {!proto.clarifai.api.OpenRouterInfo} returns this
23082
+ */
23083
+ proto.clarifai.api.OpenRouterInfo.prototype.clearParams = function () {
23084
+ return this.setParams(undefined);
23085
+ };
23086
+ /**
23087
+ * Returns whether this field is set.
23088
+ * @return {boolean}
23089
+ */
23090
+ proto.clarifai.api.OpenRouterInfo.prototype.hasParams = function () {
23091
+ return jspb.Message.getField(this, 1) != null;
23092
+ };
22911
23093
  if (jspb.Message.GENERATE_TO_OBJECT) {
22912
23094
  /**
22913
23095
  * Creates an object representation of this proto.